Add default session expiration

- Sets default cookie lifetime to use PHP.ini value.
- Adds bn-ng-idle to handle idle user.
- Sets default timeout to 3600 seconds to log the user out and redirect to the login page.
- Displays a warning message to the user on session timeout.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
Dillon-Brown 2020-04-13 09:46:32 +01:00
parent 7195848d86
commit 07cfbf4d37
7 changed files with 57 additions and 8 deletions

View file

@ -5,6 +5,7 @@ framework:
# Note: Session will only be started if you read or write from it.
session:
cookie_lifetime: null
handler_id: null
cookie_secure: auto
cookie_samesite: lax
@ -13,4 +14,4 @@ framework:
log: true
assets:
base_path: '/public'
base_path: '/public'