[nycphp-talk] RE: [nycphp-dev] SESSIONS & COOKIES

Daniel Kushner nyphp at
Fri Aug 1 08:03:15 EDT 2003

If your session is dependent on the status of a cookie, you need to set your
cookie to expire when the browser is closed (i.e. ccokie lifetime = 0). You
can put a timestamp in the session and manualy kill the session if it was
created more than 20 minutes ago.


 -----Original Message-----
From: dev-bounces at [mailto:dev-bounces at]On
Behalf Of Donald J. Organ IV
Sent: Friday, August 01, 2003 5:10 AM
To: talk at; NYPHP Development
Subject: [nycphp-dev] SESSIONS & COOKIES

  Does anyone know of a way to not only have the session expire when the
cookies do when also when the browser closes, right now I am using:
session_set_cookie_params( 1200,"/","");

  Now I know that, will make the session expire after 20 minutes but how do
I have the session expire not only after 20 minutes but when the browser is
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the talk mailing list