Re: Overriding session length in existing session?

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

 



> This is called globally in *all* my scripts. In another script I'd
> really like to set the session to expire after the browser closes if a
> uses clicks "public terminal" or something.

Howdy.  Don't sessions expire when the browser closes as a rule?  Do
you mean the session cookie?  Why not store the cookie, if one exists,
 in a $_SESSION variable in your header file and then refer to that in
the rest of your code, rather than the cookie.  Then when you want to
destroy the session cookie, you can overwrite it and the existing
session will still flow using the $_SESSION vars until the browser
closes.

It's early here, I hope that sort of makes sense and that I've at
least sort of understood the problem.

Marc

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