Session If you are using ASP 3.0 (the version of ASP-comes with Windows 2000/iis 5) then your can use the following Syntax
Session.Contents.Remove "Name"
Where name is the name of the session variable your wish to remove. Removing session variables in this way has its advantages by using the following method:
Session ("Name") = Null
Namely, the above method (setting a sessions variable to Null) is only removes the memory associated and the session variable itself. The Session object still maintains a reference to it, though. The session object with a Key/item pair, similar to the Scripting.Dictionary object. Therefore, using the Null method above, you are not removing the key from the session Contents collection that contains th E reference to the variable ...
With the ' Remove method ' We looked at the are removing both the key and item associated. There is also a removeall-can is used to scrap all of the sessions variables completely:
Session.Contents.RemoveAll
Again, the Remove and RemoveAll methods are new to ASP 3.0. If you are have ASP 2.0, you'll need to use the Null method