t">
<li class="blockList">
<h4>getSession</h4>
<pre><a href="../../../jakarta/servlet/http/HttpSession.html" title="interface in jakarta.servlet.http">HttpSession</a>&nbsp;getSession(boolean&nbsp;create)</pre>
<div class="block">Returns the current <code>HttpSession</code> associated with this request or, if there is no current session and
 <code>create</code> is true, returns a new session.

 <p>
 If <code>create</code> is <code>false</code> and the request has no valid <code>HttpSession</code>, this metho