It's all about your thread local request that keys in on the subject.


On Nov 1, 2011, at 12:30 PM, "Abid Hussain" <[email protected]> wrote:

> Hi,
> 
> posted this message in the forum already but somehow hasn't been posted to 
> the mailing list.
> 
> I'm new to Shiro and have a question about how SecurityUtils.getSubject() 
> works.
> 
> After reading the documentation it's said that one simply retrieves the 
> current user (subject) by calling
> SecurityUtils.getSubject()
> 
> But in the context of multiple users concurrently using the application each 
> with their own session how does SecurityUtils determine the relationship to 
> the session? In this context I would rather expect something like
> SecurityUtils.getSubject(session).
> 
> Any hints are appreciated...
> 
> Regards,
> 
> Abid 
> -- 
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> 

Reply via email to