RE: [PHP-DB] Sessions in Functions

From: Date: Fri, 16 Mar 2001 10:43:12 +0000
Subject: RE: [PHP-DB] Sessions in Functions
Groups: php.db 
Request: Send a blank email to php-db+get-7541@lists.php.net to get a copy of this message
Did you declare $LOGGED_IN as a global variable in your function? e.g. global $LOGGED_IN; _____ ~ Richard Allsebrook ~ Applications Developer and Webmaster Easysoft Limited, Thorp Arch Grange, Thorp Arch, Wetherby, LS23 7BA, UK http://www.easysoft.com <http://www.easysoft.com> - http://www.cinema.com <http://www.cinema.com> "A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila." _____ -----Original Message----- From: jjelver [mailto:jjelver@worldsites.net] Sent: Friday, March 16, 2001 10:41 AM To: php-db Cc: jjelver Subject: FW: [PHP-DB] Sessions in Functions 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

Attachment: [application/rtf]
« previous php.db (#7541) next »