It looks like you are using your own ehcache.xml file. What is the name of your active sessions cache region in that file? If you don't have this cache region defined, you'll see sessions lost unexpectedly.
http://shiro.apache.org/session-management.html#SessionManagement-EHCacheSessionCacheConfiguration Pay particular attention to the overflowToDisk=true and eternal=true config lines. If you want a different name for the cache region, you can set that name on the sessionDao instance: sessionDao.activeSessionsCacheName = "whateverNameYouAssignInEhcacheXml" -- Les Hazlewood CTO, Katasoft | http://www.katasoft.com | 888.391.5282 twitter: @lhazlewood | http://twitter.com/lhazlewood katasoft blog: http://www.katasoft.com/blogs/lhazlewood personal blog: http://leshazlewood.com On Wed, Jan 4, 2012 at 4:12 PM, jeffp <[email protected]> wrote: > Sounds like a cache setup issue possibly for the custom Realm. See this > http://shiro-user.582556.n2.nabble.com/Issue-with-Shiro-authorization-getting-cleared-td7140992.html > thread for more information. > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Losing-session-regardless-of-timeout-tp7151602p7152628.html > Sent from the Shiro User mailing list archive at Nabble.com.
