Connecting Tech Pros Worldwide Help | Site Map

How to set the SESSION EXPIRE TIME ?

  #1  
Old July 17th, 2005, 02:29 PM
Angelos
Guest
 
Posts: n/a
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....


  #2  
Old July 17th, 2005, 02:29 PM
Mike Willbanks
Guest
 
Posts: n/a

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
  #3  
Old July 17th, 2005, 02:46 PM
Juha Suni
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
where to set Maximum inactive interval time in php bhing answers 1 March 12th, 2007 10:07 AM
Application should not be Expire time in ASP.net (using this FormsAuthenticationTicket ) karunakar answers 2 November 19th, 2005 07:37 AM
Session Expire Angelos answers 0 July 17th, 2005 02:18 PM
SESSION EXPIRE Carlos Marangon answers 1 July 17th, 2005 04:27 AM