Page 1 of 1

Sessions

Posted: Wed Jan 15, 2003 8:28 pm
by angelmoon
Hi all,
Hope someone can help me.

OK. Here's the thing. I have created a log in page. When the user submits their login information, a session is created as well as a cookie. The user browser around the site and wants to write a test. The test checks to see if the user has logged on which he/she has so the test appears and the user writes. If it takes the user longer than Approx. an 1/2 hour to write it, when the user submits it says that the user has to log on again!! I am guessing because the session was deleted. Any ideas for stopping this from happening????
THANKS,
ANGELMOON :-)

Posted: Wed Jan 15, 2003 10:48 pm
by volka
open your php.ini (if possible) and search for the Section [Session]. The parameters are almost self-explanatory but they are also explained at http://www.php.net/manual/en/ref.session.php
since they are marked as Changeable: PHP_INI_ALL you might alter the settings via string ini_set ( string varname, string newvalue) before using session-functions on each request or via .htaccess as well