This topic is locked

session time out

5/1/2007 11:52:39 AM
PHPRunner General questions
J
Jean author

Hello,
Is there a way to change the timout delay of a session ? Some users were logout when writing a long text in a Memo field loosing their job definitively.

Something to do with phprunner or with the system of my provider ?
Jean

Admin 5/1/2007

Session time out can be changed in php.ini file. If you don't have an access to this file you may talk to your ISP in this regard.

J
Jean author 5/5/2007

Having no access to php.ini and no solution through my ISP, I found another solution. As it could be of some interest to anybody else here it is :
in _edit.htm, put the line
<script>setInterval("updateRTEs();document.forms['editform'].submit();",900000);</script>
Every 15 min of inactivity the form will autosave.
Jean

T
thecomputerguy 6/16/2009

Having no access to php.ini and no solution through my ISP, I found another solution. As it could be of some interest to anybody else here it is :

in _edit.htm, put the line
<script>setInterval("updateRTEs();document.forms['editform'].submit();",900000);</script>
Every 15 min of inactivity the form will autosave.
Jean


Will this need to be added to every HTML file?
Thank you,
Andrew

J
Jane 6/16/2009

Andrew,
yes. You need to add this code to all _add.htm/_edit.htm files.

hfg 6/16/2009

I have attempted (and it seems to work) putting the following code in the After Successful Login
ini_set("session.gc_maxlifetime","3600");
you can change the 3600 to what you need.

I
inquest2c 6/20/2009

I have attempted (and it seems to work) putting the following code in the After Successful Login

ini_set("session.gc_maxlifetime","3600");
you can change the 3600 to what you need.


Is it possible to simply set this in the login.php file instead? For example, I have added to the list of ini_set commands at the top of the login.php file, but have not really tested it to see if it has the desired effect.
K

T
thecomputerguy 6/23/2009

I have attempted (and it seems to work) putting the following code in the After Successful Login

ini_set("session.gc_maxlifetime","3600");
you can change the 3600 to what you need.


This worked prefect! Thank you so much!!