Better solution would be to display your login form together with all get and post variables in hidden fields. If the user logs in sucessfully, your script can continue with processing the form data.

[EMAIL PROTECTED] wrote:
right of course, 1440 is only 24 minutes.


On Tuesday, October 28, 2003 6:46 PM wrote:


Hi there, i am experiencing a session timeout problem with one of my
projects. One of the users had left their machine for less than 15

mins,


maybe a bit more and it logged them out when posting data. This isnt

good


as they lost their data. I was wondering how i can dynamically set the
session timeout to try and prevent this.

Use ini_set() to alter the max lifetime of a session.


ini_set('session.gc_maxlifetime',n);

where n is the number of seconds you want to pass before the session is
expired.   Default is 1440.

Cheers,
Pablo



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to