Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default links are resetting ZENID and loosing login or shopping cart

    Hello,

    I am working on a draft site here
    http://174.121.133.186/~moojicol/

    If I add something to the cart, then go to any link on the page I lose my shopping cart or login.

    Header is made with CMS Made Simple and Sidebox Anywhere (http://www.studio-owens.com/blog/CMS...kin-Helper.htm)
    I am using an old 1.3.8 template

    I have tested by removing the CMS Made Simple from the template, removing the Sidebox Anywhere, changed to Classic Contemporary Green template; and used different browsers and computers, But the problem is the same.

    v1.3.9h
    Server OS: Linux 2.6.34.6
    Database: MySQL 5.1.52
    define('STORE_SESSIONS', 'db');
    define('SQL_CACHE_METHOD', 'none');

    If anyone has anything I can try to fix this with it would help allot.
    Last edited by vandiermen; 19 May 2011 at 09:46 PM.

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: links are resetting ZENID and loosing login or shopping cart

    Well, I get as far as the Create Account/Login page without dropping the cart contents - and can go back to Home and then to Shopping Cart without losing the cart contents.

    Vger

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: links are resetting ZENID and loosing login or shopping cart

    Its because you have hardcoded the zenids in the top section

    hover over all the links on that page do the zenids at the top end with 9717?

    look using a different browser they should change

    I get 2 different zenids on the same page, the big top slogan banner thingie all the zen links on there give me one zenid (if I check in another browser I get the same zenid so you have borked that by hardcoding the zenid in)

    whereas the links in the white section under the greeny yellow bar give a completely different zenid to the one at the top, (and when i check in another browser the zenid for this bottom section is different again which is correct)
    Webzings Design
    Semi retired from Web Design

  4. #4
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: links are resetting ZENID and loosing login or shopping cart

    Quote Originally Posted by nigelt74 View Post
    Its because you have hardcoded the zenids in the top section

    hover over all the links on that page do the zenids at the top end with 9717?
    When I add something to the cart, then go to the root directory or any page with out a zenID (http://174.121.133.186/~moojicol/ or http://174.121.133.186/~moojicol/ind...=shopping_cart) it loses the cart

    e.g.
    if you add something to the cart you will get an address like
    index.php?main_page=shopping_cart&zenid=963fbea463d9e3b46a171f82aa396a59
    THen if you go to
    index.php?main_page=shopping_cart
    straight away you lose cart contents

    same with login's
    simply need to go to the root directory to lose your login.

    Anyway I have given up on this site completely now and I starting from the beginning somewhere else.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: links are resetting ZENID and loosing login or shopping cart

    Have you tried using a proper domain name instead of merely an IP address?

    (Session) cookies are handled differently in various browsers when IP addresses are used instead of domain names. This is likely your main problem.
    .

    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.

  6. #6
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: links are resetting ZENID and loosing login or shopping cart

    Quote Originally Posted by DrByte View Post
    Have you tried using a proper domain name instead of merely an IP address?
    That maybe was the problem. I just setup the site as it was step by step on a server with a domain and it works good/no problems.
    I will remember this for next time though, and thank you for your answer.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 21 Apr 2013, 11:37 PM
  2. v150 Admin Console and Shopping Cart are gone!
    By EmJayNaturalBeautiqu in forum Upgrading to 1.5.x
    Replies: 18
    Last Post: 8 Feb 2012, 12:36 PM
  3. Replies: 2
    Last Post: 24 Jun 2010, 11:20 PM
  4. Replies: 2
    Last Post: 11 Nov 2008, 09:56 AM
  5. Shopping cart links and such...
    By virago in forum Basic Configuration
    Replies: 3
    Last Post: 4 Apr 2007, 07:45 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