[jira] [Resolved] (SHIRO-622) Session Management page - Incorrect variable name in example

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Resolved] (SHIRO-622) Session Management page - Incorrect variable name in example

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SHIRO-622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Demers resolved SHIRO-622.
--------------------------------
    Resolution: Fixed

fixed, and published to site

> Session Management page - Incorrect variable name in example
> -------------------------------------------------------------
>
>                 Key: SHIRO-622
>                 URL: https://issues.apache.org/jira/browse/SHIRO-622
>             Project: Shiro
>          Issue Type: Documentation
>            Reporter: Kamal
>
> This is the documentation in this section:-
> http://shiro.apache.org/session-management.html#using-sessions
> {quote}
> Like almost everything else in Shiro, you acquire a Session by interacting with the currently executing Subject:
> {code}
> Subject currentUser = SecurityUtils.getSubject();
> Session session = currentUser.getSession();
> session.setAttribute( "someKey", someValue);
> {code}
> The subject.getSession() method is a shortcut for calling currentUser.getSubject(true).
> {quote}
> The variable subject does not exist in the code example.  Did I misunderstand what the documentation was trying to say?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...