HTTP Redirection allows you redirect the current request to another URL. A common scenario is for login operations where the user is trying to access functionality before he's logged in. When the request comes in you can redirect the user to the Login page first.
Redirection is an HTTP feature that works through the HTTP header and requires that all existing output be discarded first.
Redirection is also available through the wwHTTPHeader::Redirect method, which this method calls internally to generate the Redirect header.
o.redirect(lcUrl,llNoOutput)
Return Value
"" if sending to file and the output text if lNoOuput is .T.
Parameters
lcUrl
The URL to redirect to.
llNoOutput
When set to .T. output is not sent to file, instead returning the result as a string.
Remarks
Redirection occurs without additional HTTP header directives. So if you generated a Cookie or Authentication request prior to the Redirection call those operations will not be submitted to the browser - it's not supported by the HTTP protocol.
See also:
Class wwResponse | Class wwHTTPHeader | wwHTTPHeader::Redirect |© West Wind Technologies, 1996-2024 • Updated: 08/10/01
Comment or report problem with topic