Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default persistent zenid and logout problem

    I just moved my site into production, and have been checking it out. I saw zenids on the who's online, and did some reading here which has me worried now. However is not an area I am at all comfortable with so still not sure what it proper behaviour and could do with some input.

    I have done all my testing with cookies on, so never saw a zenid and did not know what they were.

    If I turn cookies off, I get the zenid on any page I visit except for the home page, I see that whenever I roll over a link, it has the zenid appended. Moreover, If I re-enable cookies, I still see the zenid on all pages except the home page age, unless I log in.

    Interestingly, and worryingly, if I go to the home page in a no-cookie session, I get logged out. I stay logged in if I have cookies on.

    Could someone tell me what's normal and what's not, and possibly give me some guidance.

    I run 1.3.6 on a host running Linux 2.6.7-smp, MySQL 4.0.27-standard-log, Apache/1.3.33 (Unix) mod_gzip/1.3.19.1a FrontPage/5.0.2.2510 PHP/4.3.11 mod_ssl/2.8.22 OpenSSL/0.9.6.

    I am browsing with Firefox 2.0

    thanks.
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: persistent zenid and logout problem

    What are your session settings?

    Have you an URL to your site?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    Have never been in here, so I send this without review.

    Session Directory ...../htdocs/store/cache
    Cookie Domain True
    Force Cookie Use False
    Check SSL Session ID False
    Check User Agent False
    Check IP Address False
    Prevent Spider Sessions True
    Recreate Session True
    IP to Host Conversion Status true

    URL in PM
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

  4. #4
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    and
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: persistent zenid and logout problem

    I am not seeing persistent zenid ...

    Were you able to fix this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    Yes, if I turn cookies off I see zenid pretty much everywhere. I haven't tried any fixes, but assume from your comment though that it is not right, so hope you can see zenid and advise on how to solve it :-)
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

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

    Default Re: persistent zenid and logout problem

    Quote Originally Posted by bikemike View Post
    Yes, if I turn cookies off I see zenid pretty much everywhere. I haven't tried any fixes, but assume from your comment though that it is not right, so hope you can see zenid and advise on how to solve it :-)
    If you have cookies disabled in your browser, you will get zenid's on all your links. This is because PHP uses the zenid to track your unique browsing session. Otherwise, without session-tracking, it could never distinguish you from anyone else.

    This works the same for all PHP-based sites using unique logins; however, rather than call it PHPSESS, Zen Cart calls it zenid

    Solution: re-enable cookies in your browser and/or firewall software.
    (Specifically, "session" cookies, which are harmless compared to "other" cookies which may contain sensitive and personal information)
    .

    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.

  8. #8
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    Thanks Dr Byte,
    That's clearly what I needed to know!

    I assume that the behaviour I'm seeing with ZC logging out when visiting the home page with cookies switched off is a separate issue and is not normal though?

    Cheers
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

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

    Default Re: persistent zenid and logout problem

    If cookies are enabled, then you'll still see zenid's until a session is established ... ie: you click on a link to another page of your site, such as a category, product, etc.
    If you click back again to the home page, you'll see that the zenid disappears again , since the session is active.
    .

    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.

  10. #10
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    OK, but I'm talking about cookies disabled, and now I am not worried about the zenid (since the zenid issue has been explained to me). What I am worried about is the state management.

    I browse with cookies off, and add some product to my cart for example, browse some more and add more to cart, and my cart grows accordingly. Now, if I happen to visit the home page then my menu options have changed, and indeed my cart is empty. Likewise, if I sign up, and am logged in, but click the home page, I'm then signed out. This does not happen with cookies on.

    So it seems to me that somehow the session (as I am calling it) is dumped from the main page when cookies are off.
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 6 Apr 2008, 01:57 AM
  2. Developing for Zen Cart - persistent data and autoloaders
    By mikedeezy33 in forum General Questions
    Replies: 2
    Last Post: 16 Dec 2007, 07:22 AM
  3. Login/Logout Problem
    By Morris in forum General Questions
    Replies: 13
    Last Post: 8 Jul 2006, 07:44 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