RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebAppComponents.CreateContext Method

Creates the Web context for the current request message.

Pascal
function CreateContext: TAbstractWebContext; override;
C++
virtual __fastcall TAbstractWebContext CreateContext();

The ImplInitContext method calls CreateContext to instantiate the Web context object for the current request. This context can then be accessed by the WebSnap application using the global WebContext function. 

In TCustomWebAppComponents, CreateContext creates a TWebContext object, creating a new session object for the current request and passing the session object along with the values of the protected Request, Response, and WebModules properties to the TWebContext constructor. 

 

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