X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP Abandon Method


Session Object Reference Complete Session Object Reference

The Abandon method destroys a user session.

Note: When this method is called, the current Session object is not deleted until all of the script on the current page have been processed. This means that it is possible to access session variables on the same page as the call to Abandon, but not from another Web page.

Syntax

Session.Abandon

Examples

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook