06-21-2011, 02:10 AM
This will set our session as the current time (md5 encoded)
Open PHP Tags
Start the session :
set our session "sid" as an md5 encoded version of our current time :
set variable $sid as our session :
display our session to the page :
Close PHP tags
Full code :
Open PHP Tags
PHP Code:
<?php
Start the session :
PHP Code:
session_start();
set our session "sid" as an md5 encoded version of our current time :
PHP Code:
$_SESSION['sid'] = md5(time());
set variable $sid as our session :
PHP Code:
$sid = $_SESSION['sid'];
display our session to the page :
PHP Code:
echo $sid;
Close PHP tags
PHP Code:
?>
Full code :
Hidden Content