Sessions in Functions
| From: | Jordan Elver | Date: | Fri, 16 Mar 2001 10:40:54 +0000 |
| Subject: | Sessions in Functions | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7540@lists.php.net to get a copy of this message | ||
Hi,
I have some code which I decided to make into a function. Some of the code
updates a session var which holds the current time. It now does not work.
// update session variable with new time
session_register("LOGGED_IN['time']");
$LOGGED_IN['time'] = mktime();
Are there issues that I should be aware of when I use sessions like this?
Thanks,
Jord