Re: How do I use sessions if cookies are turned off in the browser?
| From: | John Holmes | Date: | Fri, 20 Aug 2004 15:01:08 +0000 |
| Subject: | Re: How do I use sessions if cookies are turned off in the browser? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194335@lists.php.net to get a copy of this message | ||
From: "Don" <donpro@lclnav.com>
OK! I got it to work. Although session_id() would not work, using the SID constant did. Below is the code I used:Compare the URL created with this:
<A HREF="test.php?<?php echo SID?>">Increment Your Counter!</A>to the URL created with this:
echo '<p><a href="test.php?sid="' . $sid . '>Increment Your Counter!</a></p>';and you'll see the reason why the second didn't work. ---John Holmes...