pledbrook/grails-shiro — Issue #7: Session is lost on 1.1
Author: rosenfeld
Created: 2011-12-13 12:47:08+00:00
State: open

I've recently upgraded the shiro plugin from 1.1-SNAPSHOT to 1.1.3. After some tweaks to make the salt work in the new version, I've realized that the session is being lost among requests.

It doesn't matter if I use

session.something = 'another thing' // and get with session.something

or

SecurityUtils.subject.session.setAttribute('something', 'another thing') // and get with getAttribute('something')

I can read the session while in the same request, but that is not useful, right? :)

I've tried all session modes I could find mention in the internet ('native', 'shiro', 'http'). Same behavior in all of them.

I'm also using the remember-me feature and set security.shiro.authc.required = false.

It was working with Shiro 1.1-SNAPSHOT. Any hint on what might be happening here?