Login   Register  
PHP Classes
elePHPant
Icontem

File: destroy_session.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Miguel Villaseņor  >  MKCS PHP Support Chat  >  destroy_session.php  >  Download  
File: destroy_session.php
Role: Example script
Content type: text/plain
Description: Unit test script
Class: MKCS PHP Support Chat
Chat with clients of a support site
Author: By
Last change:
Date: 2013-09-17 12:08
Size: 577 bytes
 

Contents

Class file image Download
<?php

require_once 'classes/MkSession.php';
$session_class = new MkSession;
session_set_save_handler(array(&$session_class'open'),
                         array(&
$session_class'close'),
                         array(&
$session_class'read'),
                         array(&
$session_class'write'),
                         array(&
$session_class'destroy'),
                         array(&
$session_class'gc'));
                         
 
ini_set('session.gc_maxlifetime',600);                        
 
session_start();
echo  
$_SESSION['user_id'];
session_destroy();