Hi,

I'm using the Apache Shiro 1.2.2 and have tried to follow the Default
SessionValidationScheduler document [1] by setting the following
configuration

sessionValidationScheduler =
org.apache.shiro.session.mgt.ExecutorServiceSessionValidationScheduler
sessionValidationScheduler.interval = 100
securityManager.sessionManager.sessionValidationScheduler =
$sessionValidationScheduler

Sadly the scheduler does not perform, the log only shows me the single line
as

DEBUG o.a.s.s.m.ExecutorServiceSessionValidationScheduler - 99 run
Executing session validation...

But when I change the configuration by removing
the sessionValidationScheduler and set the interval directly to the session
manager as the following: -

securityManager.sessionManager.sessionValidationInterval = 100

It works perfectly as the following example log: -

DEBUG o.a.s.s.m.ExecutorServiceSessionValidationScheduler - 99 run
Executing session validation...
INFO  o.a.s.s.m.AbstractValidatingSessionManager    - 271 validateSessions
Validating all active sessions...
INFO  o.a.s.s.m.AbstractValidatingSessionManager    - 304 validateSessions
Finished session validation.  No sessions were stopped.
DEBUG o.a.s.s.m.ExecutorServiceSessionValidationScheduler - 105 run Session
validation completed successfully in 0 milliseconds.
DEBUG o.a.s.s.m.ExecutorServiceSessionValidationScheduler - 99 run
Executing session validation...

I'm not sure if I'm doing something wrong or not. Could you please help to
explain further? Thank you very much for your help in advance. I'm looking
forward to hearing from you soon.



[1]
http://shiro.apache.org/session-management.html#SessionManagement-SessionValidation%26Scheduling

--
   Best Regards,

   Charlee Chitsuk

Reply via email to