NYCPHP Meetup

NYPHP.org

[nycphp-talk] ASP to PHP translation

jon baer jonbaer at jonbaer.net
Mon Nov 10 12:49:46 EST 2003


Actually i think there are a few more steps ... what you need to do is
provide the cookie with a timeout:

session_set_cookie_params(int time - ms)
then set a timeout for the cache (depending on ur setup)
session_cache_expire(int time - m)

To get accurate timeout working you need to include before every
session_start();  Not to mention other timing adjustments:

http://us3.php.net/manual/en/function.session-set-cookie-params.php

> It sounds like you might be talking about session.gc_maxlifetime, see
> http://us3.php.net/manual/en/ref.session.php





More information about the talk mailing list