title: SESSION problem when using GET method in php
body: <blockquote>
  <pre><code>&lt;?php session_start();?&gt;
  
  &lt;a href="abc.php?color=red"&gt; send the color &lt;/a&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;?php
  @$_SESSION['color'] = $_GET['color'];
  echo $_SESSION['color'];
  ?&gt;
  
  &lt;br&gt;
  &lt;br&gt;
  &lt;a href="abc.php"&gt; check the session variable &lt;/a&gt;
  </code></pre>
  </blockquote>
  
  <p>hi,
  i need help for the above code.</p>
  
  <p>i want to pass a variable to session. </p>
  
  <p>with above code im doing this but the session variable dissappears when i refresh the page or when i click the bottom link. i want the  <code>echo $_SESSION['color'];</code> sticky</p>
  
  <p>what should i do?
  with regards</p>