Web Hosting Talk







View Full Version : Session Expire


redforest
11-11-2002, 01:43 PM
In ASP its easy to let a Session expire.
<% Session.Timeout = 10 %>

Does anybody know if theres any function like that in PHP???

MarkIL
11-11-2002, 01:58 PM
Check this page (http://www.php.net/manual/en/ref.session.php). Specifically, the session.cookie_lifetime parameter.

Studio64
11-11-2002, 02:32 PM
Well...

If you want to do a logout button there is a session_destroy() function...
:cool:

redforest
11-11-2002, 02:55 PM
Im talking about the session exp. after the user has been inactive for an amout of time.

Bulldog
11-11-2002, 02:58 PM
Those aren't session variables, those are called application variables.

Note: I'm not saying you can't use session variables to do this, just that application variables are better designed for the job.

sasha
11-11-2002, 03:07 PM
http://www.php.ca/manual/en/function.session-cache-expire.php

.com mirror is messed up fopr the last few days (no user notes)