note 22394 deleted from ref.session by sniper
| From: | sniper@php.net | Date: | Sun, 28 Jul 2002 00:50:40 +0000 |
| Subject: | note 22394 deleted from ref.session by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33750@lists.php.net to get a copy of this message | ||
I wrote a login page for a site in PHP 4.1.2 and if the login was successful I was using a
Header("Location: ") to redirect the user to another page. The problem I noticed is that
the Session wasn't passed to the redirected page. I tried using a Header("Location:
myfile.php".$PHPSESSID) but no result. I solved this mystery by using a :
<script language="javascript">
location.href="myfile.php";
</script>
This is not so elegant but it works !
Hope it helps