GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Nov-2005, 19:32
fj8283888 fj8283888 is offline
Junior Member
 
Join Date: Apr 2004
Posts: 37
fj8283888 is on a distinguished road

auto unset session


Hi,

if a webpage was not enter any info after 10 seconds, how does the session unset and return to login page?

Thanks
  #2  
Old 25-Nov-2005, 20:10
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

Re: auto unset session (session.gc_maxlifetime)


What a strange request! Are you sure it's only 10 seconds?

Anyway, you can try editing the session.gc_maxlifetime (default is 1440 seconds) in your php.ini file and see if that works.

Be aware of the notes available for this setting:

Quote:
session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up.

Note: If different scripts have different values of session.gc_maxlifetime but shares the same place for storing the session data then the script with the minimum value will be cleaning the data. In this case, use this directive together with session.save_path.

Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does not so you will have to come up with another way to handle garbage collecting your session if you are stuck with a FAT filesystem or any other filesystem where atime tracking is not available. Since PHP 4.2.3 it has used mtime (modified date) instead of atime. So, you won't have problems with filesystems where atime tracking is not available... more.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP auto restarts upon running games alcedo Computer Software Forum - Windows 6 20-Aug-2005 10:05
using session variables josemiguel MySQL / PHP Forum 1 05-Jan-2005 02:39
session error bananatji MySQL / PHP Forum 2 17-May-2004 23:37
restricting auto indexing DannyMeister Apache Web Server Forum 2 12-Jan-2004 11:07

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:20.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.