05.5 Session Functions
Peter Ivanov edited this page Aug 20, 2013
·
1 revision
Functions that helps you set and get session variables. They automatically start the session when needed.
Set a session variable
//set a session variable
session_set('something', 'some_value');
Get a session variable
//get a session variable
$something = session_get('something');
var_dump($something);
Deletes session variable
//delete a session variable
session_del('something');
Deletes session variable
//destroy the whole session
session_end();