SecurityUtils.getSubject() will give you the currently executing
Subject instance in almost any environment.

HTH,

Les

On Mon, Apr 19, 2010 at 9:08 PM, [email protected]
<[email protected]> wrote:
>
> I am using the shiro web realm to authenticate for an application. once the
> user is authenticated he is redirected to the index page.
> Is there some way i can retrieve the subject or the principal from the
> session.
> --
> View this message in context: 
> http://n2.nabble.com/Values-from-session-tp4927935p4927935.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to