Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookies won't work only on one computer

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hello.

I'm not sure wether or not the cause of the problem is linked to PHP code or Windows settings, but here is the weird problem I'm encountering:

Although the PHP code generate/retrieve properly cookies on any machine, there is only one computer who will refuse to recognize cookies generated by my PHP code. What makes me think it can't be a problem of misconfiguration of IE or Windows is the fact that this computer will work fine with cookies coming from google for example.
Also on this machine, only IE is affected (Netscape is OK).
I've had a look at all the settings in IE, but everything looks OK.

Anyway, here is the PHP code:

$days = 365;
$expires = time()+($days * 86400);


if($wanna_save <> &quot;yes&quot;){
setcookie(&quot;info_perso[0]&quot;);
setcookie(&quot;info_perso[1]&quot;);
setcookie(&quot;info_perso[2]&quot;);
setcookie(&quot;info_perso[3]&quot;);
setcookie(&quot;info_perso[4]&quot;);
setcookie(&quot;info_perso[5]&quot;);
setcookie(&quot;info_perso[6]&quot;);
setcookie(&quot;info_perso[7]&quot;);
setcookie(&quot;info_perso[8]&quot;);
setcookie(&quot;info_perso[9]&quot;);
} else {
setcookie(&quot;info_perso[0]&quot;, $client_name, $expires);
setcookie(&quot;info_perso[1]&quot;,$client_surname, $expires);
setcookie(&quot;info_perso[2]&quot;,$client_address, $expires);
setcookie(&quot;info_perso[3]&quot;,$client_city, $expires);
setcookie(&quot;info_perso[4]&quot;,$client_postal_code, $expires);
setcookie(&quot;info_perso[5]&quot;,$client_country, $expires);
setcookie(&quot;info_perso[6]&quot;,$client_phone, $expires);
setcookie(&quot;info_perso[7]&quot;,$client_temp_phone, $expires);
setcookie(&quot;info_perso[8]&quot;,$client_fax, $expires);
setcookie(&quot;info_perso[9]&quot;,$client_email, $expires);
}

Thanks to the one who will respond.

My Work...
...and More...
 
I'd take a closer look at the Privacy settings on the machine. You may find that cookies from your server are being blocked by some setting -- and you can block cookies from a specific machine in newer versions if IE. ______________________________________________________________________
Never forget that we are
made of the stuff of stars
 
In IE, select the menu &quot;Tools/Internet options&quot;. This will open a tabbed dialog box, one tab of which is marked &quot;Privacy&quot;. ______________________________________________________________________
Never forget that we are
made of the stuff of stars
 
Is that particular machine running a different version if IE from the rest? Some versions of IE get a little squirrely handling cookies. ______________________________________________________________________
Never forget that we are
made of the stuff of stars
 
Thanks for coming back again.

I think this problem can't be fixed, really.
First, the browser and system were the same as
other computers in the place and I've also installed
the newest version of IE on this computer afterwards.

I hope this is the only one computer on earth that
will cause such trouble. :)

My Work...
...and More...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top