Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / links are resetting ZENID and loosing login or shopping cart

links are resetting ZENID and loosing login or shopping cart

Started by vandiermen on 19 May 2011, 8:42 PM · Views: 1,438

Results 1 to 6 of 6
19 May 2011, 8:42 PM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Post #1 by vandiermen

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-Made-Simple-eCommerce-Skin-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.

19 May 2011, 10:55 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #2 by vger

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

20 May 2011, 12:48 AM
#3
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Post #3 by nigelt74

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

20 May 2011, 5:13 PM
#4
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Post #4 by vandiermen

nigelt74:

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/index.php?main_page=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.

20 May 2011, 5:40 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

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.

20 May 2011, 6:54 PM
#6
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Post #6 by vandiermen

DrByte:

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. :smile: