Thanks, I added cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager securityManager.cacheManager = $cacheManager
How I can get the sessions using Java. Can you show me some Java code sample, please? On Tue, May 10, 2016 at 12:56 PM, Thibault TIGEON <[email protected] > wrote: > You can find the documentation concerning the cache here : > http://shiro.apache.org/caching.html > > Rgds, > > Thibault > > 2016-05-10 11:33 GMT+02:00 Peter Penzov <[email protected]>: > > > Hi Darin, > > Thank you for the response. I use this shiro.ini configuration: > > > > [main] > > shiro.loginUrl = /authentication/login.xhtml > > dataSource = org.apache.shiro.jndi.JndiObjectFactory > > dataSource.resourceName = jdbc/DefaultDB > > dataSource.resourceRef = true > > jdbcRealm = com.crm.web.authentication.JdbcRealm > > jdbcRealm.dataSource = $dataSource > > jdbcRealm.permissionsLookupEnabled = true > > securityManager.realm = $jdbcRealm > > passwordMatcher = > > org.apache.shiro.authc.credential.Sha256CredentialsMatcher > > credentialsMatcher = > > org.apache.shiro.authc.credential.HashedCredentialsMatcher > > credentialsMatcher.hashAlgorithmName = SHA-256 > > credentialsMatcher.storedCredentialsHexEncoded = true > > credentialsMatcher.hashIterations = 5000 > > multipleroles = > com.crm.web.authentication.MultipleRolesAuthorizationFilter > > > > [urls] > > /authentication/login.xhtml = authc > > /authentication/passwordreset.xhtml = anon > > /javax.faces.resource/** = anon > > /** = authc > > > > How I can add cache? > > > > On Tue, May 10, 2016 at 12:18 PM, Darin Gordon <[email protected]> wrote: > > > > > If you're using a cache, you could get active sessions from it , > > > deserialize each session, and find those that have the " is > > authenticated " > > > flag set. Authenticated sessions will have user identification in > them, > > > too. > > > On May 10, 2016 2:26 AM, "Peter Penzov" <[email protected]> > wrote: > > > > > > > Hi All, > > > > How I can get all logged in users as a list in Apache Shiro? > > > > > > > > Can you give me some example? > > > > > > > > > >
