wwPageResponse::Redirect

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,llPermanent)

Parameters

lcUrl
The Url to redirect to

llPermanent
If set causes a permanent redirect (status 301) to be set instead of a plain redirect (status 302) which is the default.


See also:

Class wwPageResponse

© West Wind Technologies, 1996-2024 • Updated: 09/07/11
Comment or report problem with topic