Results 1 to 10 of 10
  1. #1
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default user gets kicked off between ssl and non ssl

    Hi,

    v. 1.3.9H
    tesoreriabahai dot org

    I installed SSL, and I can access the site fine, and when go to login page it is https, I do login fine, but when clicking on a not secure page, i.e. catalog I get kicked off, and if I click on login button I get back in w/o having to fill the email, and password.
    Basically I cannot use the site.

    Same is in the admin area the login page is https, I login fine, but when I try to get to any page, be it tools, catalog, configuration, or else, I get kicked off, and this time clicking login doesn't let me back in.

    I have cleared cache, and cookies, but no luck.

    Thank you

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: user gets kicked off between ssl and non ssl

    I installed SSL, and I can access the site fine, and when go to login page it is https, I do login fine, but when clicking on a not secure page, i.e. catalog I get kicked off
    If by "kicked off" you mean back to http versus https then that is correct

    Zencart only uses https for pages that require it
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: user gets kicked off between ssl and non ssl

    Thanks for the reply kobra.
    Sorry I haven't been clear; no I mean that when I try to go to pages that are supposed to be http, the user appears not to be logged in again, he gets logged-off, though half way; and in the admin area, though being it all https I get logged off whichever link I click.

    I set back the config files with the https disabled, I made a test user for you to see, but when I tested it, it appears to work as the user stays logged, but another issue came up:
    I now have two users, and while making a test with the newly added user it seems the cart of one user is diplayed for the other user, mostly it appears they share the same cart, as when I emptied one of the carts, the other one too shows empty, when I add a new item to one cart, the older cart seems to be overwritten. - by older cart I mean that of the other user.

    Test user is keneso at gmail dot com
    psw 123456

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: user gets kicked off between ssl and non ssl

    Having a language issue with me,

    Is this a fresh install or an upgrade??
    but another issue came up
    Check your links or the links elsewhere that could be used to get to your site, they can not have any "zenid" attached
    Zen-Venom Get Bitten

  5. #5
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: user gets kicked off between ssl and non ssl

    I will set the language to english as well, sorry for that.

    Yes fresh install, with the only mod being the sidebox login, and the setting for user to be approved before being able to add items to cart.

    This is very wierd, I was using FF till now, right now I tried chrome, and the problem of being logged-out came back!!

    Please give me few minutes to disable https, and add English (as I can't access the admin sections like said)

  6. #6
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: user gets kicked off between ssl and non ssl

    Ok, I've set the language, you find it at bottom of sidebar.

    I added another test user
    farzin95 at hotmail.com
    999999

    I created an admin, if you think is safe I can pm you

  7. #7
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: user gets kicked off between ssl and non ssl

    Ok, I think I found the culprit, can you please confirm my finding:

    In the config files i noticed I had

    admin/includes
    PHP Code:
      define('DIR_WS_ADMIN''/safe_admin/');
      
    define('DIR_WS_CATALOG''/');
      
    define('DIR_WS_HTTPS_ADMIN''/~username/safe_admin/');
      
    define('DIR_WS_HTTPS_CATALOG''/'~username/); 
    and includes
    PHP Code:
      define('DIR_WS_CATALOG''/');
      
    define('DIR_WS_HTTPS_CATALOG''/~username/'); 
    I deleted ~username, and it seems to be working fine.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: user gets kicked off between ssl and non ssl

    Only you might know where "~username" might have come from????
    Glad it is sorted
    Zen-Venom Get Bitten

  9. #9
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: user gets kicked off between ssl and non ssl

    Thanks kobra ... I meant if you can confirm that the correct setting of the config files is like below, which you basically have with your question.

    As to answer your question, I suspect it was added while installing the SSL, as for sure I did not added it.

    define('DIR_WS_ADMIN', '/safe_admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/safe_admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: user gets kicked off between ssl and non ssl

    If your shop is at the web root those look correct
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 Jun 2012, 12:18 AM
  2. 1.3.9d visiting non-SSL page logs user out
    By decartwr in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 20 Jun 2010, 12:16 PM
  3. SSL Redirects, customers getting kicked.
    By dwessell in forum General Questions
    Replies: 3
    Last Post: 25 Nov 2009, 08:22 PM
  4. convert non-ssl store to ssl
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jul 2008, 04:15 PM
  5. PnP non-ssl and ssl (plug npay payment modules) download for 1.3.x
    By x-tremeentertainment in forum Addon Payment Modules
    Replies: 0
    Last Post: 7 Dec 2006, 10:02 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