Hi folks :slightly_smiling_face: before I jump int...
# questions
g
Hi folks 🙂 before I jump into it, does anybody know if Persistent Logins will avoid loggin in again each time the application restarts?
s
I don't believe so. By default sessions live in memory and when the instance goes away so does the session. I use spring session jdbc to store sessions in the database, but my use case is also lower volume. I'm sure AWS Elasticache/Redis could be configured the same with Grails.
👍 1
j
I have a setup with 2+ application servers, that uses redis for session caching. This avoids login after application restart and also no need to login to each application server.
s
It may depend on how your deployment of the application works too actually. Tomcat may save session state to disk on shutdown
👍 1
g
Thnak you guys, in the end I configured tomcat to persist the session, it seems to work 👍
👍 1
Copy code
server:
  servlet:
    session:
      persistent: true
      store-dir: my-app-name