title: How to get the Express Session variable in all the handlebars pages, right now i have render it each time, i want it to be done once only
body: <p>How to get the Express Session variable in all the handlebars pages, right now i have render it each time, i want it to be done once only and access in from the handlebar page.</p>
  
  <p>index.js</p>
  
  <pre><code>app.post('/first',function(req,res){
  var session = require('express-session');
  req.session.fullname =Email;
  res.render('first',
  {Email:req.session.fullname,arrayofpromotions:arrayofpromotion,layout:false});
  </code></pre>
  
  <p>first.handlebars</p>
  
  <pre><code> &lt;li&gt;&lt;a href="#"&gt; {{#if Email}} Welcome {{ Email }}{{/if}}&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>When the page is requested from /first url, i can read the session variable, as i have rendered it, but not from other pages, i want the variable available without rendering it. So that i can read the session variables from some other pages also.</p>
  
  <p>Like if i go to /second also the req.session.fullname should contain value.</p>
  
  <p>I read some other answers on stackoverflow but i didnt get the exact solutions for it. Please help.</p>