Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    help question [Done 1.3.9] Counter History, Sessions and Spiders

    Hi,

    I seem to be getting some weird behaviour with the Counter History in Zen Cart v1.3.7. Can anyone verify the following for me:

    1. The first column in the Counter History on the admin screen counts 'sessions'.
    2. Setting 'Prevent Spider Sessions' to True stops spiders from getting a session.
    3. Given the above two conditions, spiders should not be recorded in the Counter History.

    Trouble is, it looks as if spiders are triggering the increase of the Session Counter in the Counter History.

    Is it just me?

    Kind regards,
    Christian.

  2. #2
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    bug Re: Counter History, Sessions and Spiders

    I've had look in includes/counter.php and it is a bit of a mess. It looks as if a spider without a session will actually increase the session counter on every page access.

    The quickest fix I can think of for the moment is just to enclose all the code in counter.php with if (session_id() != '') {} . Urrgh.

    Hope that helps.
    Christian.

  3. #3
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Counter History, Sessions and Spiders

    This bug still exists in v1.3.8, any chance of a fix in v1.4?...I'll say please...

    Regards,
    Christian.

  4. #4
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default Re: Counter History, Sessions and Spiders

    I'll add a "please, please, pretty please." I really need to know how many visitors are actually coming to my site and how many (and, ideally, which) pages they are looking at before leaving or buying. I love Zen's many capabilities but this one is sadly lacking.
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Counter History, Sessions and Spiders

    Lotsa improvements coming :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Counter History, Sessions and Spiders

    In the meantime, the following adjustment may provide the relief you're seeking:

    /includes/application_top.php
    around line 111 (depending on your version) is this block of code:
    Code:
    /**
     * load the counter code
    **/
    // counter and counter history
      require(DIR_WS_INCLUDES . 'counter.php');
    Change it to this instead:
    Code:
    /**
     * load the counter code
    **/
    if ($spider_flag == false) {
    // counter and counter history
      require(DIR_WS_INCLUDES . 'counter.php');
    }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Difference between the counter history and google Analytics
    By wwwursa! in forum General Questions
    Replies: 1
    Last Post: 29 Jun 2015, 05:38 AM
  2. Replies: 0
    Last Post: 6 Jul 2012, 09:21 AM
  3. [Done v1.3.9b] Counter History issue in 1.3.9a
    By Danielle in forum Bug Reports
    Replies: 24
    Last Post: 11 Jun 2010, 02:48 AM
  4. Replies: 14
    Last Post: 6 May 2010, 05:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg