Last post Feb 24, 2011 05:46 AM by arun banik
Jul 31, 2007 10:56 AM|tripnotic80|LINK
I would like to be able to clear specific session when the user close the browser, go to a new page or a whole different website. I would like to use the "Windows.OnbeforeUnload" to call the clear session. I don't want to redirect to another page to clear
Is there a way to do this?
Jul 31, 2007 11:47 AM|Freakyuno|LINK
Jul 31, 2007 10:47 PM|tripnotic80|LINK
Jul 31, 2007 11:18 PM|Freakyuno|LINK
I'm afraid you arent understanding the distinction between client side, and server side code.
make the distinction very well.
what you're after.
You can find details on doing this here:
In his example, he returns a simple string, and doesnt do much inside the webservice call, but you very well could execute your manged server side code inside the webservice, and then return a string with a success or error code.
Aug 01, 2007 01:36 AM|lad.bhavesh|LINK
This function will create XMLHTTP object and call logout.aspx internally.
you will have to create logout.aspx page at server side which will abandon the session.
Thus you will be able to clear session without redirecting a user to a specific page.
Aug 01, 2007 10:23 AM|tripnotic80|LINK
When I ask you that question, I was thinking of AJAX but didn't know how to do it. I'll take a look at the video. thanks!
Feb 24, 2011 05:46 AM|arun banik|LINK