Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Rid Of Session Variables

Status
Not open for further replies.

irate

Programmer
Jan 29, 2001
92
GB
Is there an easy way to get rid of all the current active Session Variables in a browser?

I have a search page that uses alot of Session Variables, it has a 'new search' button.

I want to button to redirect the user to the search page and destroy all the Session Variables used in the previous search.
 
irate,

If you have ASP 3 then you can use Session.Contents.RemoveAll otherwise parse throught the Session.Contents collection and use .Remove

Hope it helps, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top