BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The Session.OnStart() Event
The Session.OnEnd() Event
The Session Object
The Server.ScriptTimeOut Property
The Server.URLEncode Method
The Server.Transfer Method
The Server.MapPath Method
The Server.HTMLEncode Method
The Server.GetLastError Method
The Server.Execute Method
The Server.CreateObject Method
The Server Object
The Response.Status Property
The Response.PICS Property
The Response.LCID Property
The Response.IsClientConnected Property
The Response.ExpiresAbsolute Property
The Response.Expires Property
The Response.Cookies Property
The Response.ContentType Property
<< LAMP
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :509

 

The Session.Abandon Method

Introduction

The Session.Abandon method can be used to remove all objects in a session object. The Abandon property does not delete any objects till all scripts are processed on the current asp page. That means if you call Abandon in the first line of your script and call a session variable in the second line, then you will still see the value. However if you call the session variable on a second page, then you wont see any output. The following example demonstrates this.

Example (session_object_methods_abandon_example.asp)

<%

            ' Create a new session

            Session("name") = "Sonu Kapoor"

            ' Destroy all objects in the session object

            Session.Abandon

            ' Session is still available here !!!

            Response.Write "<b>Session is still avaible.</b><br/>"

            Response.Write "Welcome back: " & Session("Name")

%>

Example (session_object_methods_abandon1_example.asp)

<%

            ' Session isnt any more available !!!

            Response.Write "<b>Session is not anymore avaible.</b><br/>"

            Response.Write "Welcome back: " & Session("Name")

%>

Output


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C

View all Jobs (Add yours)
View all CV (Add yours)



online fax
swimming pool contractor
United Kingdom Conference Calling
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP