Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP Abandon Method

ASP Abandon Method


Session Object Reference Complete Session object reference manual


The Abandon method ends the user's session.

**Note:** When this method is called, the current Session object is not deleted until all scripts on the current page have been processed. This means that session variables can be accessed on the same page when Abandon is called, but cannot be accessed from another page.

Syntax

Session.Abandon

Example

File1.asp:

<%

Session("name")="Hege"

Session.Abandon

Response.Write(Session("name"))

%>

Output:

Hege

File2.asp:

<%

Response.Write(Session("name"))

%>

Output:

(none)


Session Object Reference Complete Session object reference manual