Session.Abandon when closing the Browser

J

JMM B

How can I execute asp.net SESSION.ABANDON from a client script event
onbeforeunload.
I'm trying to do this to logout a user without waiting for the session
timeout.
thanks a lot.
 
E

Egbert Nierop \(MVP for IIS\)

JMM B said:
How can I execute asp.net SESSION.ABANDON from a client script event
onbeforeunload.
I'm trying to do this to logout a user without waiting for the session
timeout.
thanks a lot.

There is no reliable way. You can give a user a 'logout' button but why
should you?

It's better to avoid wasting resources by putting lots of data in ram ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top