PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Session Handler Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Session Handler Class
Store and retrieve session values
Author: By
Last change: Apply fixes from StyleCI
Date: 5 years ago
Size: 509 bytes


Class file image Download

require_once 'classes/Session.php';

$sess = new Session();

$name = 'session';

$value = 'Hay i am php session';

// Set/store value in session


    'name' => $name,

    'value' => $value,



//deleting/unset the session



//printing the session if set

echo $sess->GetValue($name);


//checking the session is set or not

if ($sess->CheckStatus($name)) {
'session is set';
} else {
'session is not set';