RE: [PHP] Sessions, no cookies and enable-trans-sid, oh my
| From: | Boget, Chris | Date: | Thu, 11 Jan 2001 20:37:20 +0000 |
| Subject: | RE: [PHP] Sessions, no cookies and enable-trans-sid, oh my | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34093@lists.php.net to get a copy of this message | ||
> make sure of course too that session_start() is called from
> in your code too. else your not using sessions :)
These are the 3 files I'm using; they all reside in the same dir:
"index.php"
<script language="php">
session_start();
header( "location: page1.php?" . SID );
exit();
</script>
"page1.php
<script language="php">
session_start();
echo "Your session id is: " . session_id();
echo "<br><br>\n";
echo "<a href=\"page2.php\">Page2</a>\n";
</script>
"page2.php"
<script language="php">
session_start();
echo "Your session id is: " . session_id();
echo "<br><br>\n";
echo "<a href=\"page1.php\">Page1</a>\n";
</script>
The PHPSESSID variable is *not* being passed on
the url going between page1 and page 2 and the
session id is always different (obviously).
--enable-trans-sid IS turned on and I have no idea
what's going on...
Chris