Re: using sessions

From: Date: Tue, 05 Dec 2000 03:51:22 +0000
Subject: Re: using sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28679@lists.php.net to get a copy of this message
Sessions are only destroyed when the user restarts his browser or with the use of session_destroy(). The only way to make this work the way you want is to turn on --enable-trans-sid on compiling and to disable the users cache like this header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); Now find a way to disable sessions from using cookies, Ive read somewhere how todo this, and I can't seem to find it.... now all the sessions will be stored without cookies, they will be added to all form's and href's. if the user leaves the site, the session is forgoten Chris Lee Mediawaveonline.com In article <Pine.LNX.4.21.0012042204260.31642-100000@web.pcintelligent.com>, "Ken Nagorski" <kenn@pcintelligent.com> wrote: > Hi, > > I am using sesion with php 4.0.2pl2. With that said this is where > I am at. I have a page that when the user gets there sets a sesion id, > whne the user goes to page two I call session_start() and then I can > print out the session id no problem, if I go to the logout page which > calls session_start(); and then session_destroy() and the back to the > first session page we see that the session has indeed been destroyed. If > I close the browser the session is gone as well. Now here is my > question. I go to yahoo.com hit the back button and the session is still > there. > how do I remove the session if the user leaves my site? > > Thank you Ken > >

« previous php.general (#28679) next »