Re: Session Timeout



On Thu, 29 Jun 2006 15:25:12 -0400, J Huntley Palmer <jhp@xxxxxxxxxxxxx> wrote:

Event though it can be set in the php.ini file globally

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 500

Can it be set per user session?

Yes.

http://uk.php.net/manual/en/ini.php#ini.list
http://uk.php.net/manual/en/function.ini-set.php
http://uk.php.net/manual/en/ref.session.php#ini.session.cookie-lifetime

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages

  • [PHP] session timeout
    ... Pete, Change the default configuration of the option session.cookie_lifetime ... Lifetime in seconds of cookie or, if 0, until browser is restarted. ...
    (php.general)
  • Session Timeout
    ... Lifetime in seconds of cookie or, if 0, until browser is restarted. ... Can it be set per user session? ...
    (comp.lang.php)
  • Re: how to declare a cookie that will destroy after browser is closed
    ... Lifetime in seconds of cookie or, if 0, until browser is restarted. ... Erwin Moller ...
    (comp.lang.php)
  • Re: Attempt to de-mystify AJAX
    ... "Hyperlinks" always open a new browser window. ... key (cookie) is still there and still contains the original value. ... You can get the cookies from the HTTP_COOKIE CGI environment variable. ...
    (comp.databases.pick)
  • Re: NSA Used Cookies to Track Visitors Web Activities?
    ... Could unwittingly installing a compromised browser open the doors wide to cookie-based intrusions? ... A cookie itself is unlikely to be a virus, but if the browser code is written in C, it is very likely to have arrays that are susceptible to "buffer overrun" Sometimes a clever enough person can use such a bug to cause executable code stored in an allegedly non-executable file to replace code in your browser or operating system. ... an external intruder coming in over an Internet connection, presumably that intruder would have access to the cookies on one's machine. ...
    (comp.sys.mac.system)