# HTML structure for any standard form post based upload etc security page
#
# --------------------------------------------------------- # --------------------------------------------------------- #||if(equal(dlg_type,(config_cal)))||

## Session Security

This page shows Trusted Device Tokens and all active SurgeWeb sessions. Revoke any tokens for browsers which are no longer trusted for increased security.

MFA Trust Tokens (ticking "Trust this device" checkbox) allow you to enter your MFA code less frequently (if enabled on the server)

Automatic Login Trust Tokens (ticking "Remember me") allow username and password to be entered less frequently.

If you see multiple sessions, you may have closed the browser without logging out, or logged in from multiple devices / browsers. Inactive sessions expire after about 48 hours. ||begin_list_trust_items|| ||if(not(equal(trust_type,(ses))))|| ||ifndef||tokens_done||

### Revokable Trust Tokens

||endif|| ||define||tokens_done||true||
||if(equal(user_browser,(Google Chrome)))|| ||else|| ||if(equal(user_browser,(Microsoft Edge)))|| ||else|| ||if(equal(user_browser,(Firefox)))|| ||else|| ||if(equal(user_browser,(Opera)))|| ||else|| ||if(equal(user_browser,(Safari)))|| ||else|| ? ||endif|| ||endif|| ||endif|| ||endif|| ||endif||

||if(equal(trust_type,(mfa)))|| Trusted browser with long duration MFA token ||else|| SurgeWeb "Remember me" Automatic Login ||endif||

Valid ||if(equal(trust_scope,(global)))|| ||trust_scope_detail|| ||else|| ||if(equal(trust_scope,(single)))|| for single ip ||else|| for ||trust_scope_detail|| ||endif|| ||endif|| until ||trust_expire|| ||if(equal(trust_associated,(0)))|| ||else||

||if(equal(trust_associated,(1)))|| ||trust_associated|| associated session||if(istrue(trust_include_this))||, including this session ||endif|| ||else|| ||trust_associated|| associated sessions||if(istrue(trust_include_this))||, including this session ||endif|| ||endif|| ||endif||

Created: ||creation_datetime|| from ||creation_ip|| - ||creation_country|| (||user_browser|| on ||user_os||)

||if(istrue(trust_include_this))|| ||else|| ||if(equal(trust_associated,(0)))|| ||else|| ||if(equal(trust_associated,(1)))|| ||else|| ||endif|| ||endif|| ||endif||

||else|| ||ifdef||hint_needed|| ||ifndef||hint_needed_done||
* Browsers don't always supply the needed information to identify browser and platform
||endif|| ||define||hint_needed_done||true|| ||endif|| ||if(istrue(this_session))|| ||ifndef||this_session_done||

### This SurgeWeb Session

||endif|| ||define||this_session_done||true||

Logged in ||creation_datetime|| from ||creation_ipnum|| - ||creation_country|| (||user_browser|| on ||user_os||)

||else|| ||ifndef||session_done||

### Other Active SurgeWeb Sessions

||endif|| ||define||session_done||true|| ||if(istrue(session_summary))||

||summay_session_count|| additional sessions from: ||summary_session_countries||

||if(istrue(summary_show))|| ||else|| ||endif||

||else||

Logged in ||creation_datetime|| from ||creation_ipnum|| - ||creation_country|| (||user_browser|| on ||user_os||)

||endif|| ||endif|| ||endif|| ||end_list_trust_items||
#||endif||