OpenBD Wiki

From OpenBD
Jump to: navigation, search

Location()

Location performs the same function as CFLOCATION tag, but enabled as a function.

Contents

Parameters

Location( url, [encode, statusCode] )

  • url: the url to which to redirect page
  • encode: boolean if you wish to encode the session details (default=true)
  • statusCode: The type of redirect (default 302)

Returns

This function instantly redirects the page

Example

<cfscript>
location( "http://www.aw20.co.uk/" );
</cfscript>

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools