#18996 [NEW]: Can't unset() the session variables
| From: | frank at orite dot com | Date: | Tue, 20 Aug 2002 20:49:06 +0000 |
| Subject: | #18996 [NEW]: Can't unset() the session variables | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17343@lists.php.net to get a copy of this message | ||
From: frank@orite.com
Operating system: Redhat Linux 7.3
PHP version: 4.2.2
PHP Bug Type: Session related
Bug description: Can't unset() the session variables
Apache/1.3.23 (Unix) (Red-Hat/Linux)
register_globals = Off
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
I was trying to test the session via two pages, test.php and test2.php.
Following are the scripts and results come up:
test.php
<?php
session_start();
$_SESSION["user"]="foo";
echo "set:".$_SESSION["user"];
unset($_SESSION);
echo "<br>unset:".@$_SESSION["user"];
?>
result on page:
set:foo
unset:
test2.php
<?php
session_start();
echo "set:".$_SESSION["user"];
echo "<br>unset:".@$_SESSION["user"];
?>
result on page:
set:foo
unset:foo
I've also tried to put up a session_destory() in test.php, that helps to
unset the variable, but simply the session no longer exists.
Does anyone has the same problem, or any answers to this issue?
--
Edit bug report at http://bugs.php.net/?id=18996&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18996&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18996&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18996&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18996&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18996&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18996&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18996&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18996&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18996&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18996&r=globals