Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2011
    Location
    Ohio
    Posts
    111
    Plugin Contributions
    0

    bug Customer Login CROSSED With Another Customers Login

    I'm running Zen Cart v1.3.9h, and PHP Version 5.4.45. My website was installed in 2010, and has been "Heavily Modified" over the years. I do not sell physical products, but instead my products are "Training Class Dates", and my customers purchase a "Seat" in my classes!

    I know that I should have updated my site (probably long ago), but it would be a nightmare with all of the modifications. The site works well, however only once in awhile a customer will call to tell me that when they went to login to their account, they found that they were "Already Logged Into Another Customers Account"!!!

    I have seen this myself a few times by simply visiting my main page, and refreshing the page! I would then already be logged into a customers account that had just purchased a seat in a class from my site! If I Logout, then all is back to normal, and I can login myself just fine!

    Like I said, it does Not always happen, and I can't recreate the issue, but I've seen it about 4-5 times in a year, but hard to know how much it happens to other customers!

    Does anyone have any ideas?
    Thanks in advance.....!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,739
    Plugin Contributions
    17

    Default Re: Customer Login CROSSED With Another Customers Login

    This can happen if two visitors share the same session. In particular if the link(s) used to access the site share the same zenid parameter in the link.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2011
    Location
    Ohio
    Posts
    111
    Plugin Contributions
    0

    Default Re: Customer Login CROSSED With Another Customers Login

    Quote Originally Posted by mc12345678 View Post
    This can happen if two visitors share the same session. In particular if the link(s) used to access the site share the same zenid parameter in the link.
    Thanks for your reply, but not sure I totally understand! How can I fix this? Thanks!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,739
    Plugin Contributions
    17

    Default Re: Customer Login CROSSED With Another Customers Login

    Well as far as a way forwards, don't post, email or otherwise distribute a link that includes a zenid in it...

    To address those occurrences of the past, if you know what the zenid was, it could be removed from the uri of an incoming uri through either a htaccess rewrite or via php before the session is set.

    If the problem is so rampant that no one can do anything, then perhaps changing the session identifier would be the next solution after fixing the software from what would likely be an altered state. (meaning, if this has happened more than likely the software has been modified by someone that shouldn't have had access...)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

    Default Re: Customer Login CROSSED With Another Customers Login

    1.3.9h is so very old. ZenID management has made many improvements since. In older versions, it would hang on until it accidentally got passed on as a link to someone or social media.

    I know you may have heard/read many horror stories on upgrades. They're really no where near that bad when following the guidelines at How do I rebuild my site on the new version, instead of upgrading? - Blogs - Zen Cart Support.

    You'll have a much improved Zen Cart with many needed security updates and, in some cases, you'll find you don't need several of the mods due to inclusion of the old ones into the core.

    The beauty of the above method is that it can be done at your own pace without interfering with the operation of your store.

    Best of all, you have the folks here at the forum to help along the way.

  6. #6
    Join Date
    Jan 2011
    Location
    Ohio
    Posts
    111
    Plugin Contributions
    0

    Default Re: Customer Login CROSSED With Another Customers Login

    Quote Originally Posted by dbltoe View Post
    1.3.9h is so very old. ZenID management has made many improvements since. In older versions, it would hang on until it accidentally got passed on as a link to someone or social media.

    I know you may have heard/read many horror stories on upgrades. They're really no where near that bad when following the guidelines at How do I rebuild my site on the new version, instead of upgrading? - Blogs - Zen Cart Support.

    You'll have a much improved Zen Cart with many needed security updates and, in some cases, you'll find you don't need several of the mods due to inclusion of the old ones into the core.

    The beauty of the above method is that it can be done at your own pace without interfering with the operation of your store.

    Best of all, you have the folks here at the forum to help along the way.
    Thanks for your reply mc12345678....

    Thanks also dbltoe.... I know you are correct, I really do need to upgrade! I'll read through the article you linked, and if I can do it without taking down my site, that would be wonderful.... I assume file-by-file! I'll give it a read! Thanks!

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

    Default Re: Customer Login CROSSED With Another Customers Login

    "The only thing we have to fear, is fear itself" somebody said. Just do what is says as far as making sure your server is capable. Your current ZC is really not made to work with your version of PHP and 1.5.6c needs at least PHP 5.5 to run.

    This is where you should enlist your host's assistance to make it possible to run both PHP versions while updating. Should be easy for your host.

    Create a new database and follow the "How do I do an upgrade and still keep my live store running in the meantime." One thing many folks miss when upgrading from an older version is the database prefix. In the past, installations often defaulted to a prefix of zc_ which made the admin table become zc_admin. This will be important when you merge your older database into the new site. Make sure the prefixes match and one of the bigger hurdles is already cleared.

  8. #8
    Join Date
    Jan 2011
    Location
    Ohio
    Posts
    111
    Plugin Contributions
    0

    Default Re: Customer Login CROSSED With Another Customers Login

    Quote Originally Posted by dbltoe View Post
    "The only thing we have to fear, is fear itself" somebody said. Just do what is says as far as making sure your server is capable. Your current ZC is really not made to work with your version of PHP and 1.5.6c needs at least PHP 5.5 to run.

    This is where you should enlist your host's assistance to make it possible to run both PHP versions while updating. Should be easy for your host.

    Create a new database and follow the "How do I do an upgrade and still keep my live store running in the meantime." One thing many folks miss when upgrading from an older version is the database prefix. In the past, installations often defaulted to a prefix of zc_ which made the admin table become zc_admin. This will be important when you merge your older database into the new site. Make sure the prefixes match and one of the bigger hurdles is already cleared.
    Thank you so much again, dbltoe! That really does help, and the process "seems" pretty straight-forward, so going to give it a try soon! I'll post back here with how it goes....

 

 

Similar Threads

  1. v151 login from front end using admin login for any customer?
    By gsmsalers in forum General Questions
    Replies: 11
    Last Post: 1 Oct 2013, 03:52 PM
  2. Replies: 2
    Last Post: 3 May 2013, 02:49 AM
  3. v139h Admin login redirects to customers login
    By jolion in forum General Questions
    Replies: 4
    Last Post: 24 Aug 2012, 07:27 AM
  4. Customers cannot login using my custom login box
    By pb4 in forum General Questions
    Replies: 13
    Last Post: 29 Nov 2010, 11:33 AM
  5. Customer Login 'There was a security error when trying to login'
    By webzuma in forum Managing Customers and Orders
    Replies: 26
    Last Post: 11 Jun 2010, 04:21 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR