note 22394 added to ref.session
| From: | cez at xnet dot ro | Date: | Sun, 16 Jun 2002 21:48:00 +0000 |
| Subject: | note 22394 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31922@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
--
http://www.php.net/manual/en/ref.session.php
http://master.php.net/manage/user-notes.php?action=edit+22394
http://master.php.net/manage/user-notes.php?action=delete+22394
http://master.php.net/manage/user-notes.php?action=reject+22394