Removing Session From Session Variable in asp.net


Following are the list of methods that are used to removing the session .

Method
Description
Session.Remove(strSessionName);
Remove an Item from Session State Collection
Session.RemoveAll()
Remove all items from session collection 
Session.Clear()
Remove all items from session collection  Note: There is no difference between Clear and RemoveAll. RemoveAll() calls Clear(), internally.
Session.Abandon()
Cancels the Current Session

0 comments:

Post a Comment