Sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
angelmoon
Forum Newbie
Posts: 1
Joined: Wed Jan 15, 2003 8:28 pm
Contact:

Sessions

Post 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 :-)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply