Tuesday, February 7, 2012

How To Clear Session Variables In ASP.NET

Clear all the Session variables following commands


Session.Clear();
Session.RemoveAll();
If you want to remove a particular variable from Session not all, then you have to use Remove method ofSession class. 
Session.Remove("variable_name");
For more detail about session
http://solve-dotnet.blogspot.in/view/flipcard#!http://solve-dotnet.blogspot.com/2012/02/session.html

1 comment:

  1. Cleaning Wimbledon Do not forget to try and find a company that offers full and quality moving out of a tenancy cleaning services for an appropriate price.

    The carpet is really one of the first signs that will alert the landlord the property is left in a good condition. So hiring such services would guarantee you are getting your security deposit back.

    ReplyDelete