title: How session gets create in JSP?
body: <p>I am learning JSP. I am not able to find out how sessions got created in JSP.</p>
  
  <p>what I know till now is session is implicit object creates under _jspService method. So I manually created session. In below JSP code I created session same as it automatically creates in index_jsp but i am getting value as null. So any body can explain me <strong>why I am getting null?</strong></p>
  
  <pre><code>&lt;%@ page import ="java.util.*" session="false" %&gt;
  &lt;%
  javax.servlet.http.HttpSession session = null;
  session = pageContext.getSession();
  %&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;%=session  %&gt; 
  &lt;/body&gt;
  </code></pre>
  
  <p></p>