I have seen so many developers once they wanted to destroy session, they used
Session(“A”) = Nothing
Its not a good practice to assign nothing object.
Correct:
Session.Abandon
The Session.Abandon method basically destroys a user session.
One thing I would add the current Session object will not delete untill the script on the current page have been processed completely.
Sorry for your inconvience, I have my official blog please visit for complete article:






Very useful tip. I will definitely use it.
By: Naveed Mazhar on April 16, 2008
at 11:42 am
Wounderfull all most all the developers do so. Before readind this artical i also use same like
Session(”A”) = Nothing
Also FormsAuthentication.SignOut() is new thing for me.
Thanks
By: Sohaib Ahmad on April 16, 2008
at 11:44 am