note 3131 deleted from function.session-register by jimw
| From: | jimw@php.net | Date: | Tue, 18 Dec 2001 22:20:21 +0000 |
| Subject: | note 3131 deleted from function.session-register by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23247@lists.php.net to get a copy of this message | ||
Sometimes I got weird behavior trying to update session variables... I found the best way to do this
was to unregister them and then re-register them and always try to do it on the lowest stack level.
<br><br>
I suggest to the people writing php that there be some more lower level session functions. Like,
keep session_register() appart from session_start - like, dont make it do a session start because
that seems to reload the value from the session - not just overwrite the current one. there should
be a session_storekey($keyname,$value) session_getkey($keyname) that returns the value so u can set
it to whatever variable u wana... maybe session_restore_state(SID) that loads up ALL of the
variables in a session - and it'd be nice to be able to deal more specifically with session IDS
(like put them into a $SID=14453214132 or whatever variable.) and use those variables to keep track
of sessions - like what if u wana join two sessions from two web pages? *shrug*