Very Odd Cookie Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Very Odd Cookie Problem

Post by Technocrat »

I am totally stumped so I figured I would try to see if anyone else has any ideas. I have a product that is being used by more than 1,000 people. I have 1 user out of them all that has this issue and its got me totally at a loss.

setcookies() works great in all browsers except IE 6.x. For some reason it just refuses to set the cookie. Like I said its one users site which is why I am totally confused. :?

phpinfo shows session.use_cookies is on

Anyone have any suggestions?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Does he have cookies disabled? Does he have Norton or some other cookie blocking software installed?
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Post by Technocrat »

It does it to me too, so it not that. :cry:
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Post by Technocrat »

Google'ing turned up a number of posts with people having the same rare issue. But no solutions :x
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Post by Technocrat »

Figured it out. For some reason which I cannot explain it was the expire value which was causing the problem

It was time()+($time*60)
$time in this case was 60

I changed it to time()+60*60*24*30 and it worked. :?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Maybe it was a system time versus server time issue? Who knows. IE gets away with weird things all the time.
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Post by Technocrat »

Yeah no kidding. Its why I try to not use it as much as possible.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

firefox ftw baby....

although i am kinda impressed with Micro$oft's attempt at a good browser... IE7
Post Reply