T
T
Timur Evgazhukov2016-02-04 15:55:15
Java
Timur Evgazhukov, 2016-02-04 15:55:15

How to restore application session after restarting tomcat?

When you restart tomcat or install a new version of the application, sessions are reset and users have to log in again, which is not very convenient. How can I save the session in the database and then restore it? The application uses Spring MVC, MySQL database and communication with it goes through JDBC

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Noobkesan, 2016-02-04
@evgajukov

very handy topic: spring-session-data-redis
docs.spring.io/spring-session/docs/1.0.2.RELEASE/r...
for storing cat sessions in redis.
even if redis fails, you can see how spring serializes the session =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question