Re: Session Timeout
| From: | Marek Kilimajer | Date: | Wed, 29 Oct 2003 08:41:21 +0000 |
| Subject: | Re: Session Timeout | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167991@lists.php.net to get a copy of this message | ||
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.
daniel@electroteque.org 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 15mins,maybe a bit more and it logged them out when posting data. This isntgoodas 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