You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by "anant.asty@gmail.com" <an...@gmail.com> on 2010/04/19 23:08:08 UTC

Values from session

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.

Re: Values from session

Posted by Les Hazlewood <lh...@apache.org>.
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, anant.asty@gmail.com
<an...@gmail.com> 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.
>