Hi John,

I don't have any ideas as to why this wouldn't work in a Grails
environment (I also haven't looked at the Grails Shiro plugin in quite
a while).

Is there a sample app or something that I can look at to see what is going on?

Regards,
--
Les Hazlewood | @lhazlewood
CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282


On Wed, May 15, 2013 at 11:21 AM, John Moore <gra...@jmsd.co.uk> wrote:
> On 07/05/13 21:50, John Moore wrote:
>> I've implemented the Shiro SessionListener interface in my Grails app,
>> in order to handle session logout and expiration events. I'm pretty sure
>> I've configured things correctly so that my SessionListener is used. In
>> Bootstrap.groovy, where the rest of the Shiro stuff is configured, I
>> have this:
>>
>> def sessionListener = new com.myapp.ShiroSessionListener()
>> shiroSecurityManager.sessionManager.sessionListeners?.add(sessionListener)
>>
>> At the moment all my SessionListener does is logs onStart, onStop and
>> onExpiration. But unfortunately nothing is logged when I connect to the
>> web application, which means the SessionListener is not working. Is this
>> the correct way to configure it? Have I perhaps missed something? Just
>> to be clear, I am using Shiro native sessions.
>>
>> I'm using the latest version of the plugin, 1.1.4, which uses Shiro 1.2.0.
>>
>>
>
> Les, I'd be interested if you have any thoughts on why this might not be
> working. I'm going about creating my own session listener replacement,
> which I'd rather not have to.
>
> John

Reply via email to