17 May
2006
17 May
'06
12:01 a.m.
* and then Khalid B declared....
Use session data.
To store something use:
$_SESSION['foo'] = $bar;
To get it back use:
$baz = $_SESSION['foo'];
That is it.
Thanks.
Will the data not be lost when the browser is closed?
No. Session data are stored in drupal's sessions table, and cross referenced with an SID that is stored in the PHPSESSID cookie on the user's machine. So, the data will be lost if that PHPSESSID cookie for the site is deleted.