On Tue, Aug 2, 2011 at 3:08 PM, Rui Vilão <[email protected]> wrote: >> and both apps >> point to the same session data store, then yes :) > > Now here... I will have to turn Ehcache on right? Something like you say in > http://shiro.apache.org/session-management.html although in my case I think > it will be programmatically.
Yes, this is one option that works ok on apps running on the same physical host. If you have apps across hosts, you'll need to enable a clustered cache (like adding TerraCotta to support Ehcache) so the same session data is accessible across multiple hosts (this might be smart even with apps on a single host to provide an additional level of guarantee for cache coherency). Or you can create a SessionDAO to use whatever shared data store you like (e.g. RDBMS or NoSQL data store like Cassandra or Mongo). Just configure the same SessionDAO in each Shiro-enabled app, and it should be fine. Cheers, -- 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
