NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_internalredirect(n) 5.0.0a naviserver "NaviServer Built-in Commands"

Name

ns_internalredirect - Re-authorize and restart url processing

Table Of Contents

Synopsis

Description

The "ns_internalredirect" command enables re-authorization and restart of a connection as if it where originally for a different location (relative URI). It is possible now to set new request location and re-process the request from the beginning without using external redirect. Internal redirect assigns new URL and calls registered proc for new URL inside the existing connection and using the same Tcl interp.

COMMANDS

ns_internalredirect location

EXAMPLES

 if { $login } {
   ns_internalredirect /main
   return
 }

See Also

nsd, returnstatus-cmds

Keywords

redirect, server built-in