{% logout %}

Use this tag to log the current user off

Syntax

{% logout [clear_session] [clear_cookies] %}

If clear_session is set, all session information will be reset, including the session id, session start date, and any session properties that have been set.

If clear_cookies is set, all cookies will be immediately expired (with the possible exception of the permissions cookie).

Examples

Logout

Copy
{% logout %}

Logout clear session

Copy
{% logout clear_session %}

Logout clear cookies

Copy
{% logout clear_cookies %}

Logout clear session and cookies

Copy
{% logout clear_session clear_cookies %}