[thelist] MS SharePoint Server Programming Books....

Wade Armstrong wade_lists at runstrong.com
Fri Mar 14 20:38:03 CST 2003


on 3/14/03 12:05 PM, Anthony Baratta at Anthony at Baratta.com wrote:

> <tip Subject="Abandoning Sessions with ASP" Author="Anthony Baratta">
> 
> Be careful how you abandon sessions. If you use the Session.Abandon, you
> are basically using the scorched earth equivalent to closing things down.
> This function call destroys everything and can cause the browser to server
> communication to freak out if the session cookie is completely destroyed.

> This process will clear out all your created session objects, but leave the
> "master" session cookie intact - keeping the browser and server
> communication "open".
> 
> </tip>
<tip subject="Abandoning Sessions with ASP" author="Wade">
A quick way to clear all of the contents of a Session is to use:
Session.Contents.RemoveAll()

To remove an individual Session variable, use:
Session.Contents.Remove "variablename"
</tip>



More information about the thelist mailing list