Sublime directory Surf the web anonymous Pagerank Monitor


MySQL session time out

brians
Wed 31 January 2007, 06:06 pm GMT +0100
Hi,

I am using the mysql session class with the access class. I would like to extend the time out period from default (5 minutes I believe) to a longer period of time. Is there a setting that will let me change this? We have pages that have a fair amount of text on them and users are being kicked back to the login screen when they try to go to the next page.

Thanks,
Brian

olaf
Wed 31 January 2007, 07:42 pm GMT +0100
the timeout inside the class is not for the session timeout ...

try this function session_set_cookie_params(600); // 600 seconds

Taurek
Tue 13 February 2007, 11:48 am GMT +0100
Where i must put in this code snippet? I want that the session times out after 20 minutes. How can I resolve this problem?

Nikolas
Tue 13 February 2007, 11:58 am GMT +0100
You should put it in the beginning of your script.

20 minutes is session_set_cookie_params(20*60);?>

Taurek
Tue 13 February 2007, 12:29 pm GMT +0100
The begining of the class?

Nikolas
Tue 13 February 2007, 12:33 pm GMT +0100
The begining of the class?

Yeah that would work

Taurek
Tue 13 February 2007, 12:48 pm GMT +0100
Yeah all right :-)

your put the code snippet above session_start();

Thanks

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional