PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Mohammad Mostafa Shahreki   Session in DB   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example
Class: Session in DB
Manage sessions stored in a MySQL database
Author: By
Last change:
Date: 11 years ago
Size: 824 bytes


Class file image Download
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en"
<!-- Copyright محمد مصطفي شهركي @ -->
<HTML xmlns="">
<TITLE>Session Set Save Handler DEMO</TITLE>
<META http-equiv="content-type" content="text/html; charset=utf-8"/>
=new MySessionHandler('localhost','root','','session_db');
    echo isset(
$_SESSION['test'])?$_SESSION['test']:'Test session is not defined';
    echo isset(
$_SESSION['value'])?$_SESSION['value']:'value session is not defined';