note 26388 added to function.session-unregister
| From: | holz at flyingdog dot de | Date: | Tue, 29 Oct 2002 10:59:59 +0000 |
| Subject: | note 26388 added to function.session-unregister | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38688@lists.php.net to get a copy of this message | ||
hello,
i have got a problem with session variables. in script i submit a form, the forms variables are
stored in a session variable, as expected.
when i call another page of the website, identified by $id or $nodeid i call script like this:
<?
if($nodeid AND $nodeid!=134 AND $nodeid!=1000 AND $nodeid!=1165):
while (list ($key, $val) = @each ($_SESSION)) {
@session_unregister($key);
}
session_unset();
endif;
?>
when i now return to my previous page with my searchresults, i still have these session variables
registered and used.
what am i doing wrong?
thanks for your help in advance..
--
http://www.php.net/manual/en/function.session-unregister.php
http://master.php.net/manage/user-notes.php?action=edit+26388
http://master.php.net/manage/user-notes.php?action=delete+26388
http://master.php.net/manage/user-notes.php?action=reject+26388