Re: Sesson handling with cookie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux