how to store the variables in session to transfer it to another page?
<p>I have to give user an email which will contain a link . After clicking on that link user will be redirected to login page first and then to that link to see the comment . My problem is that I don't want to display that ids in URL when user click email link only email id will be displayed in url and rest of ids should in session 
this is form</p>

<pre><code>session_start();
$usr=getparams("usr");
$hoss_id=getparams("hoss_id");
$redirect_to_comment=getparams("hotpressContainer");
$_SESSION['hoss_id'] = $hoss_id;
$_SESSION['hotpressContainer'] = $redirect_to_comment;
$select="select email from members where mem_id='$usr'";
$email_id=firesql($select,'get');

if(isset($email_id)){
    $email = $email_id-&gt;email;

}else{
        $email = "";      
}

&lt;table width="100%" border="0" cellpadding="0" align="center" cellspacing="0" style="border:1px solid #FFFFFF; *width:98%; "&gt;

  &lt;tr&gt;
    &lt;td class="main-text" align="center" &gt;
    &lt;table width="40%" border="0" cellpadding="3" cellspacing="3" align="center" class="body"&gt;
              &lt;form action="index.php" method="post" name="loginform" onsubmit="return validate()"&gt;
              &lt;tr&gt;
                &lt;td width="41%"&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td width="59%"&gt;&amp;nbsp;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;Email&lt;/td&gt;
                &lt;td&gt;&lt;input type="text" name="email" size="30" class="iptext" value="'.$email.'"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;Password&lt;/td&gt;
                &lt;td&gt;&lt;input type="password" name="password" size="30" class="iptext"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input name="submit" type="submit" class="submit" value="Continue "&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;&lt;input type="hidden" name="referer" value="'.$_SESSION['referer'].'"&gt;
                   &lt;input type="hidden" name="pg" value="login" /&gt;
                     &lt;input type="hidden" name="d" value="done" /&gt;

                &lt;/td&gt;
                &lt;td&gt;&lt;p&gt;&lt;a href="index.php?pg=fp"&gt;Forgot Password?&lt;/a&gt;&lt;/p&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td&gt;&lt;a href="index.php?pg=register"&gt;Join Now&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;
        &lt;/form&gt;
     &lt;/table&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>and on submitting the form user will be redirect to that user my questions are
when I register that varibles in session (in login page ABOVE CODE) that values are not catched in that page where I want to redirect ?</p>
