NYCPHP Meetup

NYPHP.org

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

Daniel Kushner nyphp at websapp.com
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.

--Daniel

 -----Original Message-----
From: dev-bounces at lists.nyphp.org [mailto:dev-bounces at lists.nyphp.org]On
Behalf Of Donald J. Organ IV
Sent: Friday, August 01, 2003 5:10 AM
To: talk at lists.nyphp.org; 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,"/","dorgan.serveftp.net");

  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
closed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030801/e5a65130/attachment.html>


More information about the talk mailing list