ASP AbandonMethod
Complete Session Object Reference Manual
The Abandon method terminates the user's session.
Note:When this method is called, the current Session object will not be deleted until all scripts on the current page have been processed. This means that when Abandon is called, session variables can be accessed on the same page, but they cannot be accessed from another web page.
Syntax
Session.Abandon
Example
File1.asp:
<%
Session("name")="Hege"
Session.Abandon
Response.Write(Session("name"))
%>
Output:
Hege
Session("name")="Hege"
Session.Abandon
Response.Write(Session("name"))
%>
Output:
Hege
File2.asp:
<%
Response.Write(Session("name"))
%>
Output:
(none)
Response.Write(Session("name"))
%>
Output:
(none)
Complete Session Object Reference Manual Other Extensions