Thursday, April 2, 2009

Session Object properties in ASP

The Session Object in ASP is a great tool for the modern web site. It allows you to keep information specific to each of your site's visitors. Information like username,password, etc.

Create Session
Session("username") = "Amit"

Accessing SessionID
Dim mySessionID
mySessionID = Session.SessionID

Set Session Timeout time
Session.Timeout = 240

Session Abandon(Clear)
Session.Abandon

No comments: