This configuration allows you to setup one or more custom links or buttons to work as a logout button. Only one of these Sentry stacks is required per-page. In the stack settings, configure the cookie name, redirect URL and optional query string. Then on your link or button, assign it a custom attribute and value of
onclick="sentry_logout(); return false;"
like this:

Clicking the logout link or button initiates the Sentry logout process; by deleting the
%id=logout_link_cookie_name% tracking cookie and redirecting the user to
%id=logout_link_redirect -href%%id=logout_link_query_string%
%[endif]%
%[if %("%id=sentry_config%" == "idle_logout")% ]%
After an initial finger tap, mouse movement, mouse click or a keyboard tap on this webpage, if the user is idle for %id=idle_duration% minute%[if %("%id=idle_duration%" != "1")% ]%s%[endif]%, the %id=idle_logout_cookie_name% tracking cookie will be deleted and the user will be redirected to %id=idle_logout_redirect -href%%id=idle_logout_query_string%
NB: Idle logout is disabled in RapidWeaver, to prevent it taking effect while you are editing pages.
%[endif]%
%%[[endif]]%%
%[if %("%id=sentry_config%" == "conditional_display")% ]%
%[endif]%
%%[[if edit]]%%
%[if %("%id=sentry_config%" == "conditional_display")% ]%
%[if %("%id=form_title%" != "")% ]%
%id=form_title%
%[endif]%
%[if %("%id=login_password_hint%" != "")% ]%
%id=login_password_hint%
%[endif]%
%[endif]%
%[if %("%id=sentry_config%" == "logout")% ]%