Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: Customer Login fails after changing host

    carlwhat,
    Log back in to your account. When you get taken back to the main page, is login or logout shown in the green bar at the top? Does zc create a new session in going from http page to https page and vice versa?
    Dave

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Customer Login fails after changing host

    Quote Originally Posted by Dave224 View Post
    carlwhat,
    Log back in to your account. When you get taken back to the main page, is login or logout shown in the green bar at the top? Does zc create a new session in going from http page to https page and vice versa?
    Dave
    when i login, your site is at https. it stays at https. i can browse no problem. i can see my account data. no problem. as i initially showed in my screenshot above, it shows logout and my account in the green bar. if i manually change the url to http, i then appear to be logged out. i do not believe one can look at one's account data if ZC is set up for https as the session is different for http v https. if i try to go to my account, it then requires me to login back in. so my initial https session looks destroyed. but in fact it is not. the session is there, but one needs the zenid parameter in the url to reconnect to that existing https session. which is not being passed along in the url.

    few things:

    • this is NOT standard behavior for any user to manually change URLs.
    • i am not sure how ZC handles the zenid in the url. perhaps someone else can chime in. some times it is there, some times it is not...
    • 100% convinced this has nothing to do with timeouts.
    • i was able to place an order no problem.


    i am not sure if this "problem" would be solved by making the site all https. if so, i have found this approach to work fine for me as opposed to doing any redirects in the .htaccess:

    https://github.com/zencart/zencart/pull/1525/files

    (looks staged for the next version of ZC.)

    hope that helps.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #13
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,015
    Plugin Contributions
    61

    Default Re: Customer Login fails after changing host

    What browser are Dave224 and carlwhat using?

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  4. #14
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Customer Login fails after changing host

    Quote Originally Posted by mprough View Post
    What browser are Dave224 and carlwhat using?

    ~Melanie
    carlWHAT:

    google chrome:

    Version 71.0.3578.98 (Official Build) (64-bit)
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  5. #15
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,015
    Plugin Contributions
    61

    Default Re: Customer Login fails after changing host

    The reason I ask, I saw similar behavior because of Chrome's datasaver function. I add no-transform to cache-control on all sites because Chrome cannot properly negotiate sessions with data saver on, which is on by default.

    Data Saver

    On your Android phone or tablet, open the Chrome app .
    At the top right, tap More Settings.
    Under "Advanced," tap Data Saver.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  6. #16
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Customer Login fails after changing host

    Quote Originally Posted by mprough View Post
    The reason I ask, I saw similar behavior because of Chrome's datasaver function. I add no-transform to cache-control on all sites because Chrome cannot properly negotiate sessions with data saver on, which is on by default.

    Data Saver

    On your Android phone or tablet, open the Chrome app .
    At the top right, tap More Settings.
    Under "Advanced," tap Data Saver.

    ~Melanie
    fyi, i was never questioning why you asked.... but nice to know why.

    i'm on a desktop. call me old school. data saver is an extension that is NOT added to my desktop version of chrome.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #17
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,015
    Plugin Contributions
    61

    Default Re: Customer Login fails after changing host

    Maybe it is on Dave's? =)

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  8. #18
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Customer Login fails after changing host

    Quote Originally Posted by Dave224 View Post
    Yes, v1.5.1 is correct.
    Quote Originally Posted by Dave224 View Post
    session.hash_bits_per_character: 6 (new host), 4 (dev system)
    That's your problem. v1.5.4 and older don't support hash_bits_per_character higher than 5.

    Work with your host for the best way to drop that to 4 or 5 temporarily until you upgrade to the newer Zen Cart version.

    Also note that the hash_bits_per_character is irrelevant after PHP 7.1 (it was renamed in 7.1.0). But that's moot since newer ZC versions work with the newer settings anyway.
    Hence using the word "temporarily" above. :)
    .

    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.

  9. #19
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: Customer Login fails after changing host

    Melanie, carlwhat, I'm using Firefox 64.0 on Mac OS 10.13.6.

    DrByte, I'll try to get session.hash_bits_per_character changed and report back. Thank you!

  10. #20
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: Customer Login fails after changing host

    I've changed the value of session.hash_bits_per_character in the php.ini file and extensively tested the store. It works perfectly now. Thank you DrByte and the others who have helped fix this problem. Great support!!!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 12
    Last Post: 5 Aug 2015, 05:59 AM
  2. Replies: 2
    Last Post: 3 May 2013, 02:49 AM
  3. Replies: 7
    Last Post: 11 Apr 2012, 07:54 PM
  4. Security error for customer login after host server change
    By sparrowce in forum General Questions
    Replies: 9
    Last Post: 29 Jul 2011, 11:26 AM
  5. customer login fails
    By jpscorp in forum General Questions
    Replies: 3
    Last Post: 14 May 2006, 12:49 AM

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