Re: Session time-out value

From: Date: Fri, 23 Jan 2004 17:29:56 +0000
Subject: Re: Session time-out value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175551@lists.php.net to get a copy of this message
Pushpinder Singh wrote:
Actually the user is only allowed to get to any page if he has logged on. Thus all the remaining pages check to see if a session has been registered, if so then the person is allowed to to go on with his session. If the session did not exist he is redirected to a login page. Do you still suggest that I should touch all pages. or it will suffice to change only the first page. Also if I were to create a .htaccess file that is kept in the same dir as the application, what do I need to include in that file ?
I would probably be best to do it for everytime session_start is called, as I'm not 100% sure it only needs to be done once. If you put it in a .htaccess file, you shouldn't have to do anything....more than likely, your webserver is already configured to use .htaccess. The syntax for that should be... php_value session.gc_maxlifetime "number of seconds" -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#175551) next »