Problem with Internet Explorer 7 and PHP Cookies

Discussion in 'PHP' started by rdlrn19, Mar 9, 2009.

  1. #1
    Hi

    I'm doing a website and I uses PHP cookies to make a login, I try in Firefox and nnot problem, but when I try it in Internet Explorer 7, the PHP cookie don't work :confused:

    This is my website:

    http://www.howdoigetridofdebt.org/admin/

    The username and pass is: admin

    I hope that someone could help me to fix this cookie error in Internet Explorer :(
     
    rdlrn19, Mar 9, 2009 IP
  2. Gonzo4u

    Gonzo4u Well-Known Member

    Messages:
    410
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Hello rdlrn19,

    IE7 doesn't save cookies with short expiration times. eg: 30 mins, 1 hour, etc. So change your cookie expiry time to 1 day cookie and it will work fine with every browser. IE7 doesn't save short time expire cookies.

    Gonzo
     
    Gonzo4u, Mar 10, 2009 IP
    pipes likes this.
  3. wayfarer07

    wayfarer07 Peon

    Messages:
    34
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There's no such thing as a "PHP cookie". PHP creates cookies using the http header protocol, and the cookies are not different than any other cookie created any other way.
     
    wayfarer07, Mar 10, 2009 IP
  4. Gonzo4u

    Gonzo4u Well-Known Member

    Messages:
    410
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #4
    He does'nt means "PHP cookie" its obvious that he means setting cookies using PHP.

    Gonzo
     
    Gonzo4u, Mar 10, 2009 IP
  5. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #5
    you must not use cookies in storing valuable variables, please use session for this..
    in storing usernames, passwords, etc.theres no point in altering or controlling the behavior of a cookie in every browser, because that is a security feature for every browser.
     
    bartolay13, Mar 10, 2009 IP
  6. luizeba

    luizeba Active Member

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Try hire some professional programmer...
     
    luizeba, May 24, 2009 IP
  7. jackburd

    jackburd Active Member

    Messages:
    396
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #7
    is it on a browser?
     
    jackburd, Mar 30, 2011 IP