shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdem...@apache.org
Subject svn commit: r1799613 - /shiro/site/publish/session-management.html
Date Thu, 22 Jun 2017 20:22:29 GMT
Author: bdemers
Date: Thu Jun 22 20:22:29 2017
New Revision: 1799613

URL: http://svn.apache.org/viewvc?rev=1799613&view=rev
Log:
publish shiro site

Modified:
    shiro/site/publish/session-management.html

Modified: shiro/site/publish/session-management.html
URL: http://svn.apache.org/viewvc/shiro/site/publish/session-management.html?rev=1799613&r1=1799612&r2=1799613&view=diff
==============================================================================
--- shiro/site/publish/session-management.html (original)
+++ shiro/site/publish/session-management.html Thu Jun 22 20:22:29 2017
@@ -344,8 +344,8 @@
 Session session = currentUser.getSession();
 session.setAttribute( "someKey", someValue);
 </code></pre>
-<p>The <code>subject.getSession()</code> method is a shortcut for calling
<code>currentUser.getSubject(true)</code>.</p>
-<p>For those familiar with <code>HttpServletRequest</code> API, the <code>Suject.getSession(boolean
create)</code> method functions the same way as the <code>HttpServletRequest.getSession(boolean
create)</code> method:</p>
+<p>The <code>currentUser.getSession()</code> method is a shortcut for calling
<code>currentUser.getSession(true)</code>.</p>
+<p>For those familiar with <code>HttpServletRequest</code> API, the <code>Subject.getSession(boolean
create)</code> method functions the same way as the <code>HttpServletRequest.getSession(boolean
create)</code> method:</p>
 <ul>
   <li>If the <code>Subject</code> already has a <code>Session</code>,
the boolean argument is ignored and the <code>Session</code> is returned immediately</li>
   <li>If the <code>Subject</code> does not yet have a <code>Session</code>
and the <code>create</code> boolean argument is <code>true</code>,
a new session will be created and returned.</li>



Mime
View raw message