Re: Problem with session_destroy() don't work

From: Date: Mon, 13 Oct 2003 21:41:45 +0000
Subject: Re: Problem with session_destroy() don't work
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166028@lists.php.net to get a copy of this message
session_destroy() don't work too well with IE (Internet Explorer) due to bunch of bugs that IE have. That is if you are using IE to test this.... "Kostas" <webmaster@consflash.de> wrote in message news:20031012172421.29639.qmail@pb1.pair.com... > 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 (#166028) next »