ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with session tracker array in Safari

October 24, 2010 9:05pm

Subscribe [2]
  • #1 / Oct 24, 2010 9:05pm

    superbiaweb

    26 posts

    I’m using the session tracker array to return to the correct page as suggested in a previous thread.

    I’m using the following PHP to set a default url if this is the first page on the site that the user has visited:

    $last_page = ($this->EE->session->tracker['1'] != '') ?  $this->EE->session->tracker['1'] : 'objects';

    Then just echoing the $last_page variable in the link. It’s working fine in explorer and Firefox but fails if the page is reloaded in Safari or Chrome on Mac and PC. The url from the tracker array is ‘404’. In Safari if there is no previous page in the tracker array and it’s using my default value one page reload results in the 404. If there is a page in the tracker array it takes 2 reloads to return the 404 value. In Chrome the 404 value is returned after a single reload.

  • #2 / Oct 24, 2010 9:06pm

    superbiaweb

    26 posts

    UPDATE…

    This was occurring because Safari and Chrome were 404ing on a missing favicon file.

  • #3 / Oct 25, 2010 12:34am

    Sue Crocker

    26054 posts

    So is everything else working? Firefox doesn’t like missing favicons, and robots.txt files.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases