RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvalidWebSession Class

Serves as a placeholder when an HTTP request could not be given a session.

Pascal
TInvalidWebSession = class(TAbstractWebSession);
C++
class TInvalidWebSession : public TAbstractWebSession;

TInvalidWebSession implements the Session property on the Web context when the WebSnap application fails to create an active session (TWebSession) for the current request. The failure to create an active session can arise from various reasons, including the situation where the WebSnap application does not have a TSessionsService component or the situation where an incoming request message tries to reactivate a session that was terminated. 

TInvalidWebSession acts as a placeholder, so that the WebSnap application does not need to raise an exception when the attempt to create an active session fails. Any attempt to use TInvalidWebSession, however, leads to an ESessionException exception. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!