PHP Sessions and IE - Tearing out my hair!

Discussion in 'PHP' started by trigoon, Feb 23, 2008.

  1. #1
    Im working on a script right now that involves using sessions to send variables from one page to another. After 10 days of work, I finish the main part of the script and have been testing it out on firefox during this time. Everything works perfect and there are no bugs. The problem comes in when I think, "hey I should check the script in IE". I go to my script and test it using IE and to my surprise it doesnt work. I google for about an hour looking for solutions and none work, I have enabled cookies, set the website to being an allowed website and even checked the box that says "Always allow session cookies". To find out if the problem was only on my computer I go downstairs to my desktop, same problem. Next I go to my older laptop, same problem (therefore the problem is the same on every version of ie [first laptop uses vista, second and third using xp]).

    Does anyone have any idea what could be wrong or what could be a possible solution?
     
    trigoon, Feb 23, 2008 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    it will be very vague if i answer u directly on this.

    Can you post the script here because that will be much more helpfull

    Regards

    Alex
     
    kmap, Feb 23, 2008 IP
  3. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, we're def. going to need some more details. Have you had anyone else check in IE, not sure if you've changed any of your settings or not. I've never heard of that happening, but perhaps you should just do something simple like have a page, session_start(); $_SESSION['count']++; echo 'Count: '.$_SESSION['count']; and just keep refreshing the page and see if it's storing them at all or if it's just showing 1 over and over again.
     
    projectshifter, Feb 23, 2008 IP
  4. The Critic

    The Critic Peon

    Messages:
    392
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Internet Explorer is weird in the way it handles cookies sometimes, especially if you set the expiration date too far into the future. What are your settings regarding session cookies?
     
    The Critic, Feb 23, 2008 IP
  5. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #5
    What version of IE are you using?

    I have never had problems with using IE6+ and sessions.
     
    HuggyStudios, Feb 24, 2008 IP