Hi Mike, Yes, definitely:
Subject subject = new Subject.Builder(appShiroSecurityManager).session(existingSession).buildSubject(); be aware that this instance is not a web-aware Subject instance. If you're doing this work in the context of a ServletRequest/Response, you might want to use the WebSubject.Builder instead. Cheers, Les On Tue, Jan 31, 2012 at 5:47 PM, Mike K <[email protected]> wrote: > Thanks Les, > Is there a way to get a subject for a different user - what I am doing is > invalidating a session of a user that is not the current user. Is there a > way to rebuild the subject from the session? > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Invalidating-sessions-tp7241745p7241892.html > Sent from the Shiro User mailing list archive at Nabble.com.
