%%[[if edit]]%% %[if %("%id=sentry_config%" == "conditional_display")% ]%
Content in this area is now protected by Sentry

Tracking Cookie: %id=cookie_name%
Passwords: %id=conditional_passwords%
%[endif]% %[if %("%id=sentry_config%" == "password")% ]% %[if %("%id=login_page_link -href%" == "")% ]%
Warning
There is currently no link set to your login page. Please provide a link to your login page in the stack settings. On your login page, place a Sentry stack with its configuration set to 'login'. This will provide an area for your website users to enter their password. You can redirect them back to this page.
%[endif]% %[if %("%id=login_page_link -href%" != "")% ]%
This webpage is now locked with Sentry

Tracking Cookie: %id=protection_cookie_name%
Passwords: %id=protect_passwords%
Login Page: %id=login_page_link -href%%id=protection_query_string%
%[endif]% %[endif]% %[if %("%id=sentry_config%" == "login")% ]%
Tracking Cookie: %id=login_cookie_name%
Passwords: %id=login_passwords%
Redirect After Login: %id=login_redirect -href%%id=login_query_string%

NB: Temporarily disable secure cookies if testing in MAMP or on a web server without SSL.
%[endif]% %[if %("%id=sentry_config%" == "logout")% ]%
Clicking the logout button deletes the %id=logout_cookie_name% tracking cookie and redirects the user to %id=logout_redirect -href%%id=logout_query_string%
%[endif]% %[if %("%id=sentry_config%" == "logout_link")% ]%
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:

Sentry custom logout link or button configuration.

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")% ]% Logged In Content: %[endif]% %%[[endif]]%% %[if %("%id=sentry_config%" == "conditional_display")% ]% %slice% %[endif]% %[if %("%id=sentry_config%" == "conditional_display")% ]% %[endif]% %%[[if edit]]%% %[if %("%id=sentry_config%" == "conditional_display")% ]% Logged Out Content: %[endif]% %%[[endif]]%% %[if %("%id=sentry_config%" == "conditional_display")% ]% %slice% %[endif]% %[if %("%id=sentry_config%" == "conditional_display")% ]% %[endif]% %[if %("%id=sentry_config%" == "login")% ]%
%[if %("%id=form_title%" != "")% ]%
%id=form_title%
%[endif]%
%[if %("%id=show_password_toggle%" == "true")% ]% %[endif]%
%[if %("%id=login_password_hint%" != "")% ]%
%id=login_password_hint% %[endif]%
%[endif]% %[if %("%id=sentry_config%" == "logout")% ]% %[endif]% %[if %("%id=sentry_config%" == "logout_link")% ]% %[endif]% %%[[if publish]]%% %[if %("%id=sentry_config%" == "idle_logout")% ]% %[endif]% %%[[endif]]%% %%[[if !edit]]%%
This webpage uses the free demo version of %stackTitle% v%stackVersion%
%%[[endif]]%%