Forum Moderators: coopster
quick question (hopefully)...
How can i exceed the 24 min duration of sessions? I mean if i left my browser window open fom more than 24mins and do nothing (idle window) the sessions will expire.
All i want is to have IE window close when one specific session expires (i know its brutal but this is how it must be done). Any ideas fellows?
All i want is to have IE window close when one specific session expires (i know its brutal but this is how it must be done). Any ideas fellows?
How can i exceed the 24 min duration of sessions? I mean if i left my browser window open fom more than 24mins and do nothing (idle window) the sessions will expire.Are you sure you are speaking about sessions and not cookies?
OK, I am off for today!
Cheers
How can i exceed the 24 min duration of sessions?
Save your session data in your webspace instead of the /tmp folder if on a shared server and then set the maximum session lifetime:
<?php
session_save_path("/home/x/public_html/temp"); // Where the session data will be saved
ini_set( 'session.gc_probability', ( int )100 ); // Deletes old session data
ini_set( 'session.gc_maxlifetime', 1440 ); // Maximum life of session (in seconds)
session_start();
?>
You need to include all of that code on every script that is to access the session data.
I need a method to close active window after a set time (20 mins for example), without doing refresh in page.
Not sure that's possible. Maybe a JavaScript to count down for 2 minutes and then close the window. But then there will always be users without JavaScript.