I have 2 Tomcats working in the loadbalancing with sticky_sessions=false. So I need "Session persistance" across the Tomcats. Tomcat documentation says there are 3 ways:
- Tomcat Clustering
- Persistance Manager + Shared Dir
- Persistance Manager + SQL Storage
Clustering doesn't fit me, because in the documentation it is written, that to configure it sticky_sessions should be true.
I tried Persistance Manager, but it looks like it also doesn't work, as it persists session only after some timeout, so with sticky_session=false it is not working.
Can Persistance Manager persists sessions immediately?
I read about memcached-session-manager, but it looks like 3d party solution, so I am afraid to use it. Is it the only solution?