Opera Browser PHP Session Handling Problem

Discussion in 'PHP' started by Steve Rich, Feb 11, 2008.

  1. #1
    Hi guys this is my first post, and I hope it's in the right place

    This is not the script I was running when I detected this anomaly,
    but to keep it simple I'll use this straight from the PHP manual:

    session_start();
    if (!isset($_SESSION['count'])) {
        $_SESSION['count'] = 0;
    } else {
        $_SESSION['count']++;
    }
    PHP:
    Opera (tested 9.25 and 9.50b) only registers session count if the page is
    re-visited by either direct typing into the address bar or with href.

    Does not register with history.back or .go(-x) or with browser history functions (button/mouse/keyboard)

    Might also add that header cache control and page expiry control have no effect. (in any case if you have to add these to get Opera to behave - it still fails because you shouldn't have to resort to this)

    All other browsers tested behave as expected (IE 6+, Firefox 2+, Safari 3+, and NN9)

    Has anyone else experienced this?

    Am I missing something?

    I have asked about this in the Opera Forum - even set up a demo on our site - so far no takers.

    Any thoughts would be appreciated ...

    Thanks
     
    Steve Rich, Feb 11, 2008 IP