Session.Abandon method

Closes the session, freeing up all associated resources.

Usage

Session.Abandon

Details

Tip

Always abandon the session once you know the user has finished with the application. Providing a link to a simple logoff page is one way to accomplish this.

Example 1.5.1.1. Logoff.asp

<%
Session.Abandon
Response.Redirect "/" ' send user to the site's home page
%>