Results 1 to 4 of 4

Thread: Suddenly dropping session on IE only, production server only

  1. #1
    Join Date
    Feb 2003

    Suddenly dropping session on IE only, production server only

    This one has me baffled.

    Tonight, my site is dropping session variables when using internet explorer.

    On every page, I have:
    PHP Code:
    After entering appropriate login information and clicking login:
    PHP Code:
    $_SESSION['intID'] = $intID
    And on each page after login, I get the users id using:
    PHP Code:
    function intIDFromSession() {
        if (isset(
    $_SESSION['intID'])) {
    $intID $_SESSION['intID'];
            if (
    is_numeric($intID)) {
                if (
    $intID 0) {
        return -

    It seems, when the problem occurs, the problem is that
    isset($_SESSION['intID']) is returning false, thus intIDFromSession is return -1. session_id(); still returns the session id correctly.

    The header contains the following:
    PHP Code:
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
    header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");  // always modified
    header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
    header("Cache-Control: post-check=0, pre-check=0"false);
    header("Pragma: no-cache"); 
    • This worked yesterday. There hasn't been any changes to the session / login code since then.
    • It still works locally AND on a test server. Both the test server and production server are hosted by Yahoo.
    • It works in Firefox, Opera and Safari.
    • It is only a probem TONIGHT and using INTERNET EXPLORER on the PRODUCTION server.

    Any guesses?

    By the way, this is a new website, so there are no users yet (besides me! using three test users). I've been using the production server for about a month without this issue. I haven't tested IE on another machine.

    If you'd like any more information, please let me know! Thanks.

  2. #2
    Join Date
    Feb 2003
    I gave up on this last night without finding a fix. And without making any changes, it worked first thing this morning.

  3. #3
    Join Date
    Mar 2009
    The session data itself is stored on your server in the file system. So technically if you are still able to retrieve the session id then assuming the file is still there....you should still be able to access the session data.

    What I don't understand is - why it would not work on IE as the data, as i said, is stored on the server and not affected by the browser at all. If i think of anything i will let you know, but personally i would have a dig around where you store your session data to see whats going on in more detail.

  4. #4
    Join Date
    Jan 2006
    $_SESSION['intID'] gets its value from $intID,

    and $intID gets its value from $_SESSION['intID'],

    I don't see where $intID gets initialized.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center