Problem with session_destroy() don't work

From: Date: Sun, 12 Oct 2003 17:22:37 +0000
Subject: Problem with session_destroy() don't work
Groups: php.general 
Request: Send a blank email to php-general+get-165915@lists.php.net to get a copy of this message
Hi, I have a problem with destroing a session. I have made a login page and the login work ok. I register the things i want like that: <? session_register(uid); $uid= mysql_result($result,0,'userid'); session_register(pwd); $pwd= mysql_result($result,0,'password'); session_register(name); $name= mysql_result($result,0,'name'); session_register(memberid); $memberid= mysql_result($result,0,'id'); ?> I try to make the logout page like that: <?php session_start(); session_unset(); session_destroy(); ?> but it dont work. I have a.. PHP - 4.0.5 a.. MySQL - 3.23.32 a.. Apache - 1.3.14 a.. PHPMyAdmin - 2.1.0 a.. Perl - nsPerl 5.005_03 session.auto_start Off session.cache_expire 180 session.cache_limiter nocache session.cookie_domain no value session.cookie_lifetime 0 session.cookie_path / session.entropy_file no value session.entropy_length 0 session.gc_maxlifetime 1440 session.gc_probability 1 session.name PHPSESSID session.referer_check no value session.save_handler files session.save_path c:/php4/sessions session.serialize_handler php session.use_cookies On installed apache on win2000 The session is not destroyd. Session_unset dont work to. Can someone help me? thanks.

« previous php.general (#165915) next »