title: php session getting reset on using image\
body: <p>I am trying to create a simple login script</p>
  <p>After veryfying user I am creating a session</p>
  <pre><code>$home_url =&quot;domainname&quot;;
  $_SESSION[&quot;user_session&quot;] = &quot;welcome&quot;;    
  header(&quot;Location: &quot;.$home_url.&quot;template.php&quot;); exit();
  </code></pre>
  <p>template.php</p>
  <pre><code>echo &quot;Session is &quot; . $_SESSION[&quot;user_session&quot;] . &quot;.&lt;br&gt;&quot;;
  </code></pre>
  <p>It works perfectly file until I add the following line in my code in template.php</p>
  <pre><code>$banner1 = $home_url.'images/banner-2.jpg';
  </code></pre>
  <p>If I just remove / after images code works</p>
  <pre><code>$banner1 = $home_url.'imagesbanner-2.jpg';
  </code></pre>
  <p>Please help</p>