ad_get_logout_url (public)
ad_get_logout_url [ -return ] [ -return_url return_url ]
Defined in packages/acs-tcl/tcl/security-procs.tcl
Returns a URL to the logout page of the closest subsite, or the main site, if there's no current connection.
- Switches:
- Options:
- -return (optional, boolean)
- -return_url (optional)
- -return
- If set, will export the current form, so when the logout is complete the user will be returned to the current location. All variables in ns_getform (both posts and gets) will be maintained.
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- login_logout_urls
Source code: set subsite_info [security::get_register_subsite] set url [dict get $subsite_info url] append url "register/logout" if { $return_p && $return_url eq "" } { set return_url [ad_return_url] } if { $return_url ne "" } { set url [export_vars -base $url { return_url }] } return $urlGeneric XQL file: packages/acs-tcl/tcl/security-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/security-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/security-procs-oracle.xql