Connecting Tech Pros Worldwide Forums | Help | Site Map

How to set the SESSION EXPIRE TIME ?

Angelos
Guest
 
Posts: n/a
#1: Jul 17 '05
Anyone knows how to expire a session after a specific time for a specific
SITE and not globally ?

I want if the user forgets his browser window open to automatically expire
the session after 20 mins more or less....



Mike Willbanks
Guest
 
Posts: n/a
#2: Jul 17 '05

re: How to set the SESSION EXPIRE TIME ?


Angelos wrote:[color=blue]
> Anyone knows how to expire a session after a specific time for a specific
> SITE and not globally ?
>
> I want if the user forgets his browser window open to automatically expire
> the session after 20 mins more or less....
>
>[/color]
www.php.net/session explains something you could use for ini_set or even
a .htaccess file for your site.

Mike
Juha Suni
Guest
 
Posts: n/a
#3: Jul 17 '05

re: How to set the SESSION EXPIRE TIME ?


Angelos wrote:[color=blue]
> Anyone knows how to expire a session after a specific time for a
> specific SITE and not globally ?[/color]

In addition to earlier comments by others, you should also check my earlier
post on thelist about the subject, and especially PHP's builtin garbage
collection:
http://lists.evolt.org/archive/Week-...02/172168.html
[color=blue]
>
> I want if the user forgets his browser window open to automatically
> expire the session after 20 mins more or less....[/color]

Actually the default value is 24 minutes.

--
Suni


Closed Thread