/user/logout
A view of the user module, defined in kernel/user/module.php and run by kernel/user/logout.php.
Address
/user/logoutWho may open it
Listed in settings/site.ini [RoleSettings] PolicyOmitList[]: no policy is checked, everyone may open it.
The user needs this policy function:
A policy on user/* (every function) also grants it; limitations of the policy (section, subtree, class ...) still apply where the view checks them.
Details
| Key | Value |
|---|---|
| UI context | authentication |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/user/logout'|ezurl>user/logout</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/user/logout' );Related
Generated by ./console exp:help:examples from kernel/user/module.php, kernel/user/logout.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.