Re: Sesson handling with cookie

From: Date: Wed, 22 Dec 2004 14:49:44 +0000
Subject: Re: Sesson handling with cookie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204954@lists.php.net to get a copy of this message
Bolla sándor wrote:
Hi, PHP 4.2.2, MySQL 3.23.xx I have a problem destorying the actual session_id (SID)? I tried to use session_destroy(), session_unset, but nothing works, session_id() is always the same.
Assuming you are using cookies... are you also destroying the user's cookie in this process?
What I want to do is: - After 30 Minutes if the user didn't do any work then let the session die - It must be work wheter browser's cookie is set or not?
Are you creating / checking the session on every page? So long as a write is done at the end of each page visit then you shouldn't be having problems checking if the session is more than 30 minutes old. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2

« previous php.general (#204954) next »