Inactive Expiry example
{% if error %}Error logging in
code {{ error['code'] }}
error {{ error['error'] }}
Your are logged in as:
{{ json.dumps(handler.current_user, indent=4) }}
You are not logged in.
{% end %} {% if '_i' in handler.session %}You must visit this page again in {{ '{:,.0f}'.format(handler.session['_i'] + handler.session['_l'] - time.time()) }} seconds
{% else %}Currently, no inactive expiry is specified for your session.
{% end %}You can log in below as alpha
with password alpha
.
When you log in, your session will be inactivated (if not visited) in
{{ '{:,.0f}'.format(handler.kwargs.session_inactive * 24 * 60 * 60) }} seconds.
But when you log in through other login pages like simple,
the session will stay active.