title: How do I save value in my own session variable in Magento?
body: <p>I am using Magento and trying to save a value in the session as follows in its index.php file, but the value is not being retained.</p>
  
  <pre><code>$_SESSION['myvar'] = '1';
  </code></pre>
  
  <p>How do I do it?</p>
  
  <p>Thanks</p>