Connecting Tech Pros Worldwide Help | Site Map

How to set the SESSION EXPIRE TIME ?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:29 PM
Angelos
Guest
 
Posts: n/a
Default How to set the SESSION EXPIRE TIME ?

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, 01:29 PM
Mike Willbanks
Guest
 
Posts: n/a
Default 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, 01:46 PM
Juha Suni
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.