Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default How does Zencart actually use cookies?

    I must admit to being a bit confused about how ZenCart is actually using cookies.


    I have the 'Force Cookie Use' parameter set to False, and I can still use all the facilities even with my browser set to not accept cookies. Even my shopping cart was maintained between sessions (was that because I was logged in?)

    What are they used for? Am I looking at the right settings?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: How does Zencart actually use cookies

    What exactly are you trying to do?
    In 99% of cases there is no need to touch that setting. Zen Cart will normally automatically do what's necessary if cookies are disabled etc.

    It's almost never necessary to edit any of the settings in the Admin->Config->Sessions area. It is recommended to leave these at their default setting.
    .

    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.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: How does Zencart actually use cookies

    1. Go to http://your_site.com/index.php?main_page=cookie_usage for a partial explanation

    2. Zen Cart uses cookies to store the temporary session number so that it doesn't need to be passed on the URL. It's a session cookie. If the cookie cannot be set, it typically just adds &zenid=blahblah to the URL on every page.
    .

    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.

  4. #4
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: How does Zencart actually use cookies

    Thanks for this.

    I was asked, by a client, exactly how the cookies worked - and it occurred to me I didn't know!

  5. #5
    Join Date
    Nov 2004
    Location
    U.K. South Wales
    Posts
    501
    Plugin Contributions
    0

    Default Re: How does Zencart actually use cookies

    Can I ask a question on the tail of this one?

    Can zencart use a cookie for automatically logging in a user, from a users cookie?

    It would be nice to set up a particular cart so that existing users don't have to log in every time they run their browser afresh

    if it can't be set up in admin, I could add a user cookie myself I suppose...

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

    Default Re: How does Zencart actually use cookies

    Zen Cart is not presently built to do this.
    Some have tackled this concept via a contribution which you can find in the downloads section.

    I suggest you ensure that you tell your customers that you're storing their personal information in cookies if you intend to do that.
    .

    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.

  7. #7
    Join Date
    Nov 2004
    Location
    U.K. South Wales
    Posts
    501
    Plugin Contributions
    0

    Default Re: How does Zencart actually use cookies

    Thanks for your reply Dr Byte
    Yes indeed I found the auto logon thread, in the past few days I've used the contrib, but there seems to be probs 'for me' with various aspects as far as my experience as a user running it goes, with a dot com domain.

    I wonder if its a possibility to store the cookie as data in the database, that's to define whether this cart user is an auto logon user, or not. The damn browsers seem to have got so particular about the domain name format for cookie path, and each browser's doing different checks.

    Plus I suspect there are issues about exactly when the server updates session variables to \tmp disc file, inside a page creation process which assigns new session variable values within it, then we assume the rest of the page php code will see the session values update immediately.

    my brain hurts.. but a transparent auto log on would be a useful zencart feature.. if you want to help out, see my 3 recent thread posts in that auto logon contrib's thread.. i'm feeling my way over there..

  8. #8
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: How does Zencart actually use cookies

    Quote Originally Posted by DrByte View Post
    1. Go to http://your_site.com/index.php?main_page=cookie_usage for a partial explanation

    2. Zen Cart uses cookies to store the temporary session number so that it doesn't need to be passed on the URL. It's a session cookie. If the cookie cannot be set, it typically just adds &zenid=blahblah to the URL on every page.
    Hallo,

    It is quite clear but I would like to confirm it because I am about to describe the cookies policy in my privacy policy statement.

    Would it be accurate to write that the only cookie used by core zen-cart is for storing the temporary session number which expires at the end of the session?

    Kind regards,
    orange_juice

 

 

Similar Threads

  1. Replies: 0
    Last Post: 6 Jul 2012, 09:21 AM
  2. v139h Can I Use Coupon Codes Without It Actually Discounting Anything?
    By TesterServers in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 7 Apr 2012, 12:12 AM
  3. Does Ultimate SEO URL's Add-On Actually work?
    By kaginken in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 11 Jun 2011, 08:00 PM
  4. How does the shopping/shipping actually work?
    By MamaT in forum General Questions
    Replies: 8
    Last Post: 20 Nov 2008, 12:04 AM
  5. what does CHMOD'ing actually get me?
    By wysiwygmn in forum General Questions
    Replies: 10
    Last Post: 18 Jun 2007, 09:00 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