You would have to perform a request to the server from the unload event.
session.abandon is a server-side scripting function.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Vilmar Brazão de Oliveira" <> wrote in message
news:%23%...
> hi,
> is there a possibility of doing this on unload event of window, use
> session.abandon method?
> thanks,
>
> --
> ««««««««»»»»»»»»»»»»»»
> Vlmar Brazão de Oliveira
> Desenvolvimento Web
> HI-TEC
> "Bob Barrows [MVP]" <> escreveu na mensagem
> news:#...
> > Rafael Chemtob wrote:
> > > Hi,
> > > I'm using session cookies on my web app and it looks like the session
> > > is not being killed when the user closes the browser. We use a
> > > Global.asa file on our app. Do we have to explicitly write to close
> > > the session or does it get killed when the user is closes their
> > > browser?
> > >
> > > Please advise.
> > > rafael
> >
> > The server does not "know" when a user closes his browser, so it cannot
> kill
> > a session when that occurs. there are only two situations where the
server
> > will kill a session:
> >
> > 1. A page issues a Session.Abandon command
> > 2. The session times out
> >
> > Bob Barrows
> > --
> > Microsoft MVP -- ASP/ASP.NET
> > Please reply to the newsgroup. The email account listed in my From
> > header is my spam trap, so I don't check it very often. You will get a
> > quicker response by posting to the newsgroup.
> >
> >
>
>