Jump to content

IE, cookies, and stuff


rainjam

Recommended Posts

Hi all

I've had a look for answers to this but haven't had any luck so far.... I'm trying to set a cookie with PHP4.4.4 on IIS, with code similar to the standard:

[code]
  setcookie('mycookie', $cookie_content, time() + (60*60*24*365));
[/code]

I've checked that I'm not sending anything to the browser before this statement. It works fine on Firefox and IE7, but IE6 and below don't seem to accept it.  I've modified the security settings to accept cookies from anywhere (Tools > Internet Options > Privacy > Advanced > override automatic cookie handling and "Accept everything", plus ...Security > Custom Level > Medium-Low), but it doesn't seem to make any difference.

The only thing I can find that might be related is the privacy policy, but I've tried generating one with IBM's P3P tool and can't make it work (and anyway, surely IE7 is [i]more[/i] strict about P3P?). Can anyone help... I'm tearing my hair out! I'm sure I'm missing something but not sure what...
Link to comment
Share on other sites

Good idea, but it doesn't seem to do anything?... here's a test page

http://rainjam.com/psd_new/index.php

try adding anything to the basket on <IE7, does it work for you?

i'm using

[code]
setcookie('psdbasket', $r, time() + (60*60*24*365), "/", "www.rainjam.com");
[/code]

where $r is just a list of product IDs...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.