A Php Shopping - Cart homeCfr
Functions to manage Sessions Data into a Site-DataBase ®
$ssp = ... session_id () = 5486d618fb4ef843ed3d5e2795d7ce75
No file is saved either on local or on Web Server , session data are being neverthless registered into Servers' Database → view all records
Please select what you would like to buy :
↑
session_decode(); session_encode(); →
Comments :
By placing in a php file the following code : session_start(); , the web server will mark the related page with a unique string that is very much similar to a cookie.
What you read above in red color is just what is really happening to this page.
PHPSESSID=e4d3d63cb2b01aba8835987ba11ade2a;
The string to the left of "=" is always "PHPSESSID" while to the right of "=" contains 32 alphanumeric chars and is closed by a semicolon, this second part is always different and is called "id", and its value is given by this function "session_id()".
...so the following expression will print the id-string :
<?
print session_id();
/*
#...the following lines give the same results :
$id=session_id();
echo $id;
*/
?>
The link-related pages from here show the outputs of php code related to this property and show how to write data that relates to this unique string.
This unique string is issued on each new session of the client's browser.
These data can be saved into a database and used to place an order from therein.