title: ExtJs:How to get Session variable
body: <p>In my Java web application,when a user gets logged in,i store the user name and other details in session as follows,</p>
  
  <pre><code>session.setAttribute("userName",username);
  </code></pre>
  
  <p>I am using ExtJs4 for UI.<strong>How to get the  session variables</strong> in extJs?</p>
  
  <p>Thanks</p>