Hi there,

New version of shiro not supprting Ehcache caching by default so I
configured as follows:

 

[main]

                        securityManager =
org.apache.shiro.web.DefaultWebSecurityManager

                        cacheManager =
org.apache.shiro.cache.ehcache.EhCacheManager

                        sessionManager =
org.apache.shiro.web.session.DefaultWebSessionManager 

                        sessionManager.globalSessionTimeout = 300000

                        securityManager.sessionManager = $sessionManager

                        securityManager.sessionMode = native 

                        securityManager.cacheManager = $cacheManager

                        wybyJDBCRealm = com.YXZ.ABD.MYDAO

 

when I deply the war in tomcat and when I start the tomcat got null
point excetion while getting manager of EhCacheManager.

 

Stachtrace:

 

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Les Hazlewood <[email protected]>
Sent: Friday, September 04, 2009 4:19 PM
To: [email protected]
Subject: Re: Unabe to session timeout

 

You need to specify the session mode property. This works (using a 
test timeout of 10 seconds): 

[main] 
securityManager.sessionMode = native 
securityManager.globalSessionTimeout = 10000 
realmA = com.xxx.bbb.aaa.fff.ff.mydao 

Setting sessionMode to 'native' will automatically enable the 
DefaultWebSessionManager by default - no need to specify it. 

And 10 seconds after a login, I saw that I was being redirected to the 
login page because my session had timed out. 

Cheers, 

Les 

On Fri, Sep 4, 2009 at 3:57 AM, wrote: 
>       HI, 
> 
> Yesterday I downloaded latest source from trank and build using mavan
and 
> placed jars from sample web application into my application. 
> 
> I am trying to set session time to my desired milliseconds as
following in 
> main section of ShiroFilter (in web.xml) but it showing session time
as 
> default 30min. 
> 
> 
> 
> [main] 
> 
>       realmA = com.xxx.bbb.aaa.fff.ff.mydao 
> 
>       securityManager = org.apache.shiro.web.DefaultWebSecurityManager
> 
>       sessionManager =
org.apache.shiro.web.session.DefaultWebSessionManager 
> 
>       sessionManager.globalSessionTimeout = 300000 
> 
>       securityManager.sessionManager = $sessionManager 
> 
> 
> 
> Please help me to set session timeout. 
> 
> 
> 
> Thanks &Regards 
> 
> Balajee 

Reply via email to