Re: Re: session expires

From: Date: Tue, 13 Jan 2004 14:01:18 +0000
Subject: Re: Re: session expires
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-174442@lists.php.net to get a copy of this message
Manuel Vázquez Acosta wrote:
A tricky way to achive this is:
    1. Start the session when the user request the login page
    2. Send a hidden field with the PHPSESSID
    3. When receiving the post compare the current session id with the
submitted by the form, if they match it's likely the session has not expired.
Even if no session file exists for PHPSESSID, PHPSESSID would be used to form the name of the session file. So always session_id() == $_REQUEST[session_name()]

« previous php.general (#174442) next »