RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.SafeRedirect Function

Redirects a browser to another specified page.

Pascal
procedure SafeRedirect(AResponse: TWebResponse; const AURL: string);
C++
SafeRedirect(TWebResponse AResponse, const AnsiString AURL);

Use the SafeRedirect function to send a response which redirects a Web browser to another page. AResponse is the response object which will send the redirect. AURL is the URL for the page that the browser is being redirected to. 

SafeRedirect differs from other redirect methods (such as an override of TWebResponse's SendRedirect method) in that it allows browsers to accept cookies. Other redirect methods don't allow cookies to be set during a redirect. 

 

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