#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    14
    Rep Power
    0
    I'm trying to set a cookies in both the secure and non-secure portions of my site. For example:
    setcookie("id", $id, $cookielife, "/", "http://www.mysite.com", 0);
    setcookie("id", $id, $cookielife, "/", "http://secure.mysite.com", 1);

    IE5.0 won't work with anything after $id. NN4.7 seems to work OK (I think).

    Is there a compatibility usage list anywhere which shows how to set cookies for each browser/version?

    Thanks
    Mark
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    45
    Rep Power
    14
    IE5.0 Will work with stuff after the $id, I've done it before. What makes you think it won't? What I'm asking for basically is your error messages/what's going wrong?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    14
    Rep Power
    0
    About the error message I received! Actually I didn't get one. It just didn't set the cookie. (It may have been my own mistake that caused it not to work!)

    However:...

    I managed to get it working with a single statement for both 'sites' and browsers as follows:
    setcookie("id", $id, $cookielife, "/", ".mysite.com");

    Still not convinced that it will work with every browser/version (above v4.0), so my initial question still applies about whether there's a definitive compatibility list.

    Point me in the right direction, please.

    Thanks again
    Mark


    [This message has been edited by Mark Wolfgramme (edited July 09, 2000).]

Similar Threads

  1. kids browser creation...
    By itd_network in forum Hire A Programmer
    Replies: 0
    Last Post: February 15th, 2004, 11:23 AM
  2. I can't get rid of my browser cookies, plz help
    By lilli151 in forum Beginner Programming
    Replies: 9
    Last Post: December 9th, 2003, 02:00 PM
  3. browser settings with cookies
    By Andrew_Smart in forum PHP Development
    Replies: 8
    Last Post: November 19th, 2003, 06:29 PM
  4. Clearing all cookies php script - HowTo?
    By fordfasterr in forum PHP Development
    Replies: 8
    Last Post: October 24th, 2003, 09:40 AM
  5. problem accessing browser over network
    By -Dman100- in forum Networking Help
    Replies: 0
    Last Post: October 22nd, 2003, 07:49 PM

IMN logo majestic logo threadwatch logo seochat tools logo