Tuesday, January 20, 2009

PHP Native Session Handling

#native php session handling


// initializes session handling in php
session_start();

// assign and set session variables
$_SESSION['varname'] = 'value';

// unset a certain variable
unset($_SESSION['varname']);

// free all session variables
session_unset();

// terminate or kill session handling
session_destroy();

No comments: