Re: How do I use sessions if cookies are turned off in the browser?
| From: | John Holmes | Date: | Fri, 20 Aug 2004 00:39:00 +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-194289@lists.php.net to get a copy of this message | ||
Don wrote:
If I change my browsers setting to block all cookies, my session variable appears not to increment and refreshing the screen displays the same text all the time.You need to pass the session id in the URL if cookies are off. There is a constant, SID, that you may be able to use, or otherwise create it with session_name() and session_id(). $link = 'http://www.yourdomain.com/page.php?'.SID; -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com