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

    Default logged in but when on product list/page it sems logged out

    ZC 1.56c
    Some customization.

    Hi

    Site is set to show price only to logged in users, I log in, and get the "welcome username" message (index.php?main_page=index), then go to a given category, and see the message "price unavailable - login to see price", at this time instead of "logout", and "your account" links, the "login" link is displayed, when clicking on it, it takes me to "your account" page (index.php?main_page=account) with all the info, and links to edit the account info, which work fine, and the "logout", and "your account" are displayed.

    When going to any other page (product/category/ezpage/etc.) it seems I am logged out.

    What am I missing, where should I look, and what to look for?

    Thank you.

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

    Default Re: logged in but when on product list/page it sems logged out

    I just tried with other settings:
    Template: classic green
    Customer details > Customer Shop Status: 0, 1, 2

    In all cases there is the issue - with some small differences - of missing "add to cart", and instead there is the "login to ..."

    Nothing in the logs.
    Last edited by keneso; 7 Mar 2020 at 04:04 PM.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: logged in but when on product list/page it sems logged out

    Php version?

    Sounds like possibly a session issue. May suggest also providing the settings for configuration->Sessions.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: logged in but when on product list/page it sems logged out

    php 7.3

    Sessions folder public_html/cache
    Cookie domain True
    Force Cookie use False
    Verify ID Session SSL False
    Verify User Agent False
    Verify IP address False
    Prevent Sessioni Spider True
    Recreate Session True Info
    IP to Host Conversion - Status true
    Use root path for cookie path False
    Add period prefix to cookie domain True

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

    Default Re: logged in but when on product list/page it sems logged out

    Update.

    I checked the "who's online" in admin tools, and shows the following, whether I log in, or not :
    Currently there are 0 customers online
    Duplicate IP Addresses: 0
    Total Unique Users: 0.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: logged in but when on product list/page it sems logged out

    Quote Originally Posted by keneso View Post
    Update.

    I checked the "who's online" in admin tools, and shows the following, whether I log in, or not :
    Currently there are 0 customers online
    Duplicate IP Addresses: 0
    Total Unique Users: 0.
    Is this true when the selection is made to allow/support viewing admin IP addresses? (Exclude Admin IP set to no)

    If it is set to yes (default), then logging into the site from an IP Address associated with the Admin will appear as if the individual is not logged in.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: logged in but when on product list/page it sems logged out

    Quote Originally Posted by mc12345678 View Post
    Is this true when the selection is made to allow/support viewing admin IP addresses? (Exclude Admin IP set to no)
    Ooops, it was set to yes; set it to no, and I do get the list.

    I was shown as guest
    I logged in, and it showed correctly I was logged in (/index.php?main_page=account)
    I went to first category, and it shows as guest (/index.php?main_page=index&cPath=1)

    Clicked back on my account, and shows me again as active, keeping the guest as inactiv; logged out, and shows active guest on /index.php?main_page=logoff.

    Two different session IDs.

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

    Default Re: logged in but when on product list/page it sems logged out

    I checked the things I could think of, i.e. forum threads, the wiki (https://www.zen-cart.com/wiki/index....ing_-_Sessions), etc.

    I also compared it to a local install, and the data are the same, save the session IDs

    Just can't seem to find a solution, any further idea, and suggestion would be very appreciated.

    Thanks.

  9. #9
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: logged in but when on product list/page it sems logged out

    Quote Originally Posted by keneso View Post
    I checked the things I could think of, i.e. forum threads, the wiki (https://www.zen-cart.com/wiki/index....ing_-_Sessions), etc.

    I also compared it to a local install, and the data are the same, save the session IDs

    Just can't seem to find a solution, any further idea, and suggestion would be very appreciated.

    Thanks.
    These are my settings for my sessions. Are you using a guest checkout. If so which one

    Session Directory /home4/xxxx/public_html/cache
    Cookie Domain True
    Force Cookie Use True
    Check SSL Session ID False
    Check User Agent False
    Check IP Address False
    Prevent Spider Sessions True
    Recreate Session True Info
    IP to Host Conversion Status false
    Use root path for cookie path False
    Add period prefix to cookie domain True
    Session Directory

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

    Default Re: logged in but when on product list/page it sems logged out

    Thank you

    My settings are the default ones, meaning that the following two differ from your settings

    Force Cookie Use False
    IP to Host Conversion Status True

    However I tried changing them like yours, but no joy; I tried also one of them like yours, and the other as default, and yet no joy.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Shows VAT incl. price when logged out, and ex-VAT when logged in
    By mrroy44 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 10 Mar 2010, 01:39 PM
  2. Log Out button when not logged in
    By uniqueliving in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Feb 2010, 11:21 AM
  3. Replies: 18
    Last Post: 29 Sep 2009, 02:37 PM
  4. Problem with second language - reverts back to English when logged out
    By dandownunder in forum Basic Configuration
    Replies: 2
    Last Post: 27 Jul 2006, 03:58 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