title: store value in session and retrive on tpl file xcart
body: <p>i am facing problem in x-cart,
  i am trying to create session and store value in x-cart 
  for that, i used </p>
  
  <pre><code>x_session_register('subscription');
  </code></pre>
  
  <p>and the simple variable in it</p>
  
  <pre><code>$rs=1;
  if($rs==1)
  {
    $subscription=1;
  }
  else
  {
    $subscription=0;
  }
  </code></pre>
  
  <p>after that used some code in tpl file like,</p>
  
  <pre><code>{$smarty.session.subscription}
  </code></pre>
  
  <p>but nothing happen
  i also tried</p>
  
  <pre><code>{php}{/php}
  $_SESSION[''];
  </code></pre>
  
  <p>but cant help me, i cant understand whats going wrong with that
  there is different file and template also file path is different
  try to create session in login.php and want this in head.tpl file
  please help me on that. thanks in advance</p>