When you call Session.Abandon, the session is queued for deletion, but the actual destruction of the session variables doesn't take place until the entire page has finished loading. So, when you call Abandon, you can still use the variables in the current page.
To overcome this, either reset the value of the variables:
Session("MyVariable") = ""
Session.Abandon()
Or use Response.Redirect to send the user to a new page, where the session will no longer be available.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|