"Jakob Andersen" <jakob@effectus.dk> wrote in message
news:b1r8hu$95l$1@news.cybercity.dk...
> "Jimmy" <nyhedsgruppe@get3_erstat_3_med_2.dk> wrote
> [Session_Onend]
> > Jeg regner metoden for upålidelig og ville aldrig anvende den, men
> > programmerer mig ud af et evt. problem på en anden måde.
>
> Ovenstående påstand bliver ofte fremført af mange forskellige mennesker,
men
> jeg savner noget dokumentation.
Jeg trækker mit udsagn om at den er upålidelig tilbage.
Det bundede i en manglende forståelse for Session_OnEnd.
Pointen i nedenstående er, at eventen *ikke* afvikles når en bruger lukker
sin browser.
Den afvikles bl.a. når sessionen timer ud eller Session.Abandon køres.
Fra asp101:
"Sessions DO NOT end when a user closes their browser. There is no
communication with the server when a browser is closed so there is no way
the server can know to end the session. The same is true when you leave the
site for another. Again no communication takes place between your browser
and the site you're leaving so the server never knows you've left."
http://www.asp101.com/articles/john/sessionsend/default.asp
Fra Microsoft:
"The Session_OnEnd event occurs when a session is abandoned or times out. "
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html
/psdk/asp/glob2y90.asp
Fra Microsoft:
"Session_OnEnd is called either when the session times out or when there is
a script call that tells Active Server Pages to abandon the session, such as
when a user clicks Log Off in Microsoft Outlook Web Access."
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_o
lemsg_the_session_onend_function.asp
Fra Learnasp:
"Fact #1: When a browser window closes, the session DOES NOT end."
http://www.learnasp.com/learn/sessionoverview.asp
Mvh
Jimmy