Session question/bug?
| From: | brad lafountain | Date: | Sun, 12 May 2002 22:06:31 +0000 |
| Subject: | Session question/bug? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83962@lists.php.net to get a copy of this message | ||
I was looking at the functionality of session_unset. Currently if register
globals is on it will get rid of all variables and it also clears out
PS(http_session_vars).. should it also get rid of PS(vars)?
I have a script that changes the session id a few times thruought the live of
the script. The problem is that it keeps the variables in PS(vars) so when i
call session_encode(), (which reads PS(vars)) I get some old session vars..
ex..
<?
session_id("1234");
session_start();
$_SESSION['test']++;
var_dump(session_encode());
session_write_close();
session_unset();
session_id("12345");
session_start();
var_dump(session_encode());
// this will have data for "test"
?>
After looking thru the session functions i don't see any of them that clear out
PS(vars).
- Brad
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com