I am facing another problem when I try to set session timeout in shiro.ini
like this:
securityManager.sessionManager.globalSessionTimeout = 3600000
I get an exception:
11:19:44,363 INFO [stdout] (MSC service thread 1-4) org.apache.shiro.config.ConfigurationException: Property 'sessionManager.globalSessionTimeout' does not exist for object of type org.apache.shiro.web.mgt.DefaultWebSecurityManager.
I am using shiro 1.2.2, if you are familiar with this exception please advise.
you are missing the one line in shiro.ini file.
securityManager.sessionMode=native
after adding this above line it will work.for full configuration session in shiro.ini file.
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
securityManager.sessionMode=native
securityManager.sessionManager.globalSessionTimeout = 60000
securityManager.sessionManager = $sessionManager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With