On Mon, Jun 18, 2012 at 9:18 AM, Sudhir N <[email protected]> wrote: > Is there any way to get notified when a remembered user returns - ? > When using shiro in servlet containers, session listeners aren't a solution > .. they won't trigger when a remembered user is associated with a session.
Well, a session listener is triggered when a session is created (or destroyed). Of course it doesn't help you much with rememberme if the session is already created for that user. One of the easiest options is to create your own SubjectFactory (http://shiro.apache.org/static/current/apidocs/org/apache/shiro/mgt/SubjectFactory.html). SubjectFactory.createSubject(..) is invoked when a user is identified. Kalle
