Re: How to destroy session ID

From: Date: Fri, 20 Aug 2004 11:15:13 +0000
Subject: Re: How to destroy session ID
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194317@lists.php.net to get a copy of this message
Khuram Noman wrote: > i have problem in destroying session id, i use the > following code > > <? > session_start(); > print "before Destroy".session_id(); > session_destroy() ; > > session_start(); > print "After Destroy".session_id(); > > ?> > > in before and after it prints the same sessionID so > how to destroy session id . waiting for soon reply This happens if session ID is stored in cookie. You need to force page reload so client rereads its cookies.

« previous php.general (#194317) next »