I have an application that uses several Session.Item objects to keep track of logged user's prefferances. Once the user uses the "logout" option, the page is redirected to a logout.aspx page that contains this code inside the page_load sub :
Session.RemoveAll()
Response.Redirect("default.aspx"
I have some doubts that this does what is intended to do, so that's why I'm asking what's the best way to clear all session items at once.
Thanks in advance!
Session.RemoveAll()
Response.Redirect("default.aspx"
I have some doubts that this does what is intended to do, so that's why I'm asking what's the best way to clear all session items at once.
Thanks in advance!