RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TLoginRequiredEvent Type

TLoginRequiredEvent is the type for event handlers that indicate whether the current user must log in before accessing a specified Web page.

Pascal
TLoginRequiredEvent = procedure (Sender: TObject; const PageName: string; var Required: Boolean) of object;
C++
(Sender: TObject; const PageName: string; var Required: Boolean) ( TLoginRequiredEvent)();

TLoginRequiredEvent is the type for event handlers of a page dispatcher that indicate whether a specified Web page requires that the user be logged in. 

Sender is the page dispatcher that is about to dispatch the HTTP request. 

PageName is the name of the Web page module to which the request is redirected. 

Required returns an indication of whether the caller must log in before accessing the specified page. On entry, this is set to the default associated with the specified Web page module. If the event handler returns with Required set to true, the dispatcher does not forward the request to the specified Web module. Rather, it generates an OnPageAccessDenied event, where the application can handle the login process. 

 

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