RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSessionsService Class

TCustomSessionsService stores end user data that is needed for a short period of time.

Pascal
TCustomSessionsService = class(TComponent, ISessionsService, ISessionsServiceConnectID, IWebGetSessionIDs, ISessionsServicePersist);
C++
class TCustomSessionsService : public TComponent, public ISessionsService, public ISessionsServiceConnectID, public IWebGetSessionIDs, public ISessionsServicePersist;

WebSess

TCustomSessionsService is the base class for classes that manage the sessions in a WebSnap application. When a WebSnap application contains a TCustomSessionsService descendant, then each HTTP request is associated with a session. TCustomSessionsService can manage multiple sessions on behalf of different users, each on a separate thread of execution. Only one session is available when handling a request. This is called the current session. The current session is available as the Session property of the global Web context, which is accessed using the global WebContext function. 

TCustomSessionsService stores session IDs and name/value pairs for all sessions in memory. This information must remain in memory between requests. Thus, Web application types that do not remain in memory between requests, such as CGI, do not support TCustomSessionsService. 

TCustomSessionsService implements the ISessionsService interface. 

 

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