Hi Tul On 5/21/07, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
I just took a look at this, it states " session.cookie_lifetime integer session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to 0. See also session_get_cookie_params() and session_set_cookie_params(). Since the cookie is returned by the browser, it is not prolonged to suffice the lifetime. It must be sent manually by setcookie(). "To be honest, I agree with the note-poster: I am having a very hard time figuring out what this is supposed to mean. Anyone who could shed some light on this so we can clarify the documentation?
The timestamp on the server is probably not the same as on the client so even if lifetime is 600seconds the cookie might a) never be set b) expire next year. This is because the 'expire' cookie parameter takes in the timestamp when it should expire, not "I should delete this cookie in 5minutes". I have no idea how/why sending the lifetime/expire parameter with setcookie() would help. Disclaimer: I didn't check the source... -Hannes
-------- Original Message -------- Subject: note 75272 added to ref.session Date: Mon, 21 May 2007 10:03:23 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Newsgroups: php.notes [quote]Since the cookie is returned by the browser, it is not prolonged to suffice the lifetime.[/quote] What the heck does this mean? That is not english, whatever it is.
