Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    Idea or Suggestion Prevent Spider Sessions

    Hi,

    I just come across that I have been leaving my "Prevent Spider Sessions" turned off until today. A lot of my pages have been indexed. I read the threads about the disadvantages. Now that I have turned it on, is there anything else I must do? Please let me know. Thanks.

    Best regards,
    Ethan
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  2. #2
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: Prevent Spider Sessions

    If your pages have already been indexed you will have to change the session id from ZENID to something else (perhaps SESID?) to prevent users from sharing sessions, and all the related problems.

    You can find this in :
    includes/init_includes/init_sessions.php and
    includes/modules/payment/paypal/ipn_application_top.php

  3. #3
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    Idea or Suggestion Re: Prevent Spider Sessions

    Hi Louis,

    Thanks for your speedy response. Do you mean to replace ZENDID with SESID in the specified files? Sorry I am not very familiar with the session problems. May I also ask why is it important to prevent users from sharing sessions? What will happen if I don't do any changes? Thanks again.

    Regards,
    Ethan
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  4. #4
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: Prevent Spider Sessions

    Yes, you have to replace
    Line #21 : zen_session_name('zenid'); with
    Line #21 : zen_session_name('sesid');

    That will force a new session id to be created when a user access your site.

    Zen-Cart uses sessions to keep track of user activity, including user shopping carts. If you have two users accessing your site at the same time using the same session id ZENCART will see them as a single user. (Even though the IP-Address is different for each actual user).

    IP's can not be used to track users as dial-up users normally get an IP assigned from a small share pool and can have a different IP everytime they click. (Depends on ISP setup)

    IE. session id = user
    All active realworld users share session id and add products to cart = chaos

  5. #5
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    Re: Prevent Spider Sessions

    Hi Louis,

    You mentioned that to fix my spider session problems, I have to replace:
    Line #21 : zen_session_name('zenid'); with
    Line #21 : zen_session_name('sesid');
    in:
    includes/init_includes/init_sessions.php and
    includes/modules/payment/paypal/ipn_application_top.php

    However, I couldn't locate the first file. Are you sure it is available for v1.2.7? Please advise. Thank you.

    Best regards,
    Ethan
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  6. #6
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: Prevent Spider Sessions

    Sorry I missed your post!

    I am not that up to date with 1.2.7. I can only assume that since sessions are already used in this version the files would be there. You can also try using the "Developers Toolkit" under "Tools" in your shop admin. Go to the bottom and enter ZENID in the search block then select 'All files - Catalog/Admin' and click on the search button. This should list all files that contain the word ZENID. Should be one or two only.

    Hope this helps.

  7. #7
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    Default Re: Prevent Spider Sessions

    Hi Louis,

    Thanks for your reply. I did what you suggested and located the two files:
    /includes/application_top.php
    /includes/modules/payment/paypal/ipn_application_top.php

    Please confirm if these are the right files. Thanks again :)


    Best regards,
    Ethan
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  8. #8
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: Prevent Spider Sessions

    OK, in your case you will have to change the ZENID in these two files to something else. All search engine indexed pages with ZENID as the identifier will then no longer create session problems for you.

  9. #9
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Prevent Spider Sessions

    Hi Ethan,

    I happen to notice that you are using a SEF contrib. And I vaguely rembember to have seen some hardcoded zenid's in that mod. I might be wrong and/or it might be fixed in the current version (if not, it should be fixed asap), but if the zenid still appears after the formentioned changes, you know where it probably comes from...


    edit:
    Hmmm, it looks like you already made the change and it seems to work fine :-) (So I am probably wrong about the hardcoded zenid's )
    Last edited by paulm; 16 Sep 2006 at 02:48 PM.

  10. #10
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Prevent Spider Sessions

    Or maybe this is related: if I click on one of the currencies at your site the curreny switches, but if I click on another link after that, the currency magicly switches back to USD again.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 25 Nov 2010, 02:10 PM
  2. Replies: 5
    Last Post: 15 Jan 2008, 07:27 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