Re: How do I prevent a session from rebuilding itself?

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

 



On Tue, July 11, 2006 4:27 pm, Daevid Vincent wrote:
> I've noticed a 'feature' that seems to be causing me some pain.
>
> When a user logs in, we store various pieces of info and their user
> class in
> a $_SESSION variables.
>
> This includes a flag saying that they've ben authenticated.
>
> I would expect that if I 'rm -rf /tmp/sess_*' that the user would get
> prompted to re-login (since the flag is not set).
>
> However what actually happens, is that PHP silently just re-creates
> the
> session with a new unique identifier but with all the same data in it.
> GRRR.
>
> How can I force this to NOT happen (either via php.ini or via some
> function
> or directive call in each page load)?

Sequence of events:
script starts
you rm -rf /tmp/sess_*
script writes out data
script ends

Exactly WHAT do you think "should" happen in this case?...

-- 
Like Music?
http://l-i-e.com/artists.htm

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