memcached-session-manager icon indicating copy to clipboard operation
memcached-session-manager copied to clipboard

Session TTLs With Redis

Open cdx-grillo opened this issue 8 years ago • 2 comments

Thanks for the awesome product! Quick question, my session is set to expire in the web.xml as 240 (4 hours). When I look at a sample session key TTL in redis, I see something like:

TTL "85224AE603537F71E315227034067D18" (integer) 21965

so 6 hours in Redis. I saw a previous post where the web.xml session timeout was not being honored but sounded like that was fixed with a 1.9.X version and I'm using 2.1.1.

Any known issues with the redis TTL not in sync with the session timeout defined in the web.xml?

Thanks much,

Greg

cdx-grillo avatar Aug 03 '17 05:08 cdx-grillo

Is the session timeout / maxInactiveInterval defined in server.xml/context.xml? This one would be preferred over web.xml.

magro avatar Aug 08 '17 21:08 magro

No, was just the web.xml, thanks very much, I'll take a look at defining in the server or context.xml

cdx-grillo avatar Aug 08 '17 22:08 cdx-grillo