RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebSession Class

TWebSession stores temporary information associated with the user in a WebSnap application.

Pascal
TWebSession = class(TAbstractWebSession, IWebSessionAccess);
C++
class TWebSession : public TAbstractWebSession, public IWebSessionAccess;

WebDisp

TWebSession represents an active Web session. Use its Values property to get or set application-specific information about the current user. If your application uses sessions to store user information, you need to include a TSessionsService component in the Web application module. 

A Web session stores information that persists over multiple calls from the same user. This information is stored as a set of Variant values that are indexed by name. You can use these named Variants to store application-defined information that is associated with a single user.  

There is no need to instantiate session objects. A Session is created automatically when the WebSnap application receives an HTTP request message. The new session is given a unique identifier, which is added (in a cookie) to response messages, so that the same session can be used for subsequent requests from the same caller. The session persists until either the user logs out, a specified time elapses with no request messages from the caller, or the application explicitly calls the session's Terminate method. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!