Re: Foreach

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

 



On 1/18/08, Andrés Robinet <agrobinet@xxxxxxxxxxxxx> wrote:> Please, don't get me wrong, I'm just curious, how does the server know when> the browser is closed? Do you use javascript (AJAX) or something to notify> the server?
it's a browser thing, not a server thing. the browser will "forget"the session cookie when it's closed.
the server doesn't care either way. afaik... which sucks, because i domy own session gc based on the last accessed time of the session rowin the database*. if the session is removed before the browser isclosed, a new one will be started as far as i know; even if thebrowser thinks it should still have the first normal "session cookie"it will be given a new one. so i typically rely on sessions "only somuch"
* i use my own mysql-based session handler since i am using multiple webservers

[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