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