Re: sessions

From: Date: Fri, 17 Aug 2001 19:16:27 +0000
Subject: Re: sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63220@lists.php.net to get a copy of this message
Hi Jeremy, session_destroy() should not destroy all your sessions. As per the manual: session_destroy() destroys all of the data associated with the current session. If you are having trouble with all your sessions being deleted in each run, it may be a problem with these php.ini file settings: session.gc_probability specifies the probability that the gc (garbage collection) routine is started on each request in percent. Defaults to 1. session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. You can find all the php session info at: http://php.net/manual/en/html/ref.session.html On Friday 17 August 2001 11:29 am, you wrote: > Hi there, I was wondering if a function such as session_close() or > session_stop() existed. You see, i've been using session_destroy and/or > session_unregister but the problem is that they unregister and/or destroy > ALL my sessions in my server folder. What I am trying to do is just stop > the session that is going on in that particular page? How can I do this?

« previous php.general (#63220) next »