Re: session - cookie issues

From: Date: Fri, 20 Oct 2006 10:26:20 +0000
Subject: Re: session - cookie issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-243391@lists.php.net to get a copy of this message
The way you're setting cookies (without a time parameter), it's set to expire at the end of the current session. Though it should work regardless, try setting an expire time: setcookie('djst', 'test', time()+3600); // expire in an hour On 10/20/06, Dave Goodchild <buddhamagnet@gmail.com> wrote:
Hi all, I am having issues with users not being able to post their details to my site. The system uses sessions, so when they hit the index page a test cookie is set thus: setcookie('djst', 'test'); and then I test whether that cookie is set on the next page. If not, I direct the users to an informational page. This works my end in FF and IE6 (sec settings tested at low, medium and medium high) but appox 1 in 20 users cannot get past the cookie warning, even if they set their security settings to low in IE. I am also setting PHPSESSID to something of my own, as I hear that IE does not like PHPSESSID (correct?). Any ideas? -- http://www.web-buddha.co.uk
-- Mukul Sabharwal http://mjsabby.com

« previous php.general (#243391) next »