jcoleman / tomcat-redis-session-manager

Redis-backed non-sticky session store for Apache Tomcat
MIT License
1.8k stars 1.12k forks source link

Session Persistence Policy Not Working #109

Open maheshchotrani opened 5 years ago

maheshchotrani commented 5 years ago

Using Tomcat 7.0.90, Jedis 2.10.2, Commons Pool 2.4.

My application heavily depends upon AJAX, and hence for a given page there are back to back requests from the same page for a single user.

Even while having sessionPersistPolicies = "SAVE_ON_CHANGE, ALWAYS_SAVE_AFTER_REQUEST", an attribute set in one request, is not available in subsequent requests. Have tried with individual policy one by one, and even both as shown above, but same behaviour.

If I deliberately have a JavaScript setTimeout of 1 second, the issue reduces, but not solved permanently.

Rest all parameter are usual. Let me know, in case of missing any configurations