What should i do in Spring Boot
to activate persistent sessions ?
I tried to play with theses properties without luck:
server.session.persistent=true
server.session.store-dir=/some/path/sessions
When i stop the daemon a see a file SESSIONS.cer
on the session
store-dir which disappears when I restart the daemon
, but the user not logged anymore (go to login page).
My Spring boot project is an Oauth2 authorization server
(I use Spring Security Oauth2
) which is used with the Implicit grant
. The session is used to avoid the user the retype its credential (login form) when asking for a token (/oauth/authorize
). This is the default behaviour of spring security oauth2
EDIT:
I tried with the following property too without luck:
server.tomcat.basedir=/tmp