Quote Originally Posted by wilt View Post
One of the main reasons that SESSION_FORCE_COOKIE_USE fails is some incorrect server configuration.
Usually a mismatch between your websites domain and it's actual host address.

You say that the code you are working on runs fine without SESSION_FORCE_COOKIE_USE
Do you see a zenid in your urls ?
Can you use a browser tool (such as firefox web developer storage inspector) to examine any cookies that Zen Cart is setting/trying to set.
look at the Cookie Domain and Cookie Path. Do the setting make sense for your site.
wilt,
thanks for taking a look.

here's what i have so far:

  • SESSION_FORCE_COOKIE_USE is set to false
  • pretty sure the problem does not lie there
  • there are 2 sessions getting created and inserted into the sessions table for 1 click of the link.
  • session.auto_start is set to false; plus i see there are ZC auto start warnings that are not getting triggered.
  • the zenid is not in the url.
  • when i examine the cookies, the cookie domain looks ok. there is no www; and it starts with a period. but the server is configured to route all www traffic to mydomain.com. plus the link is mydomain.com.
  • all of the cookie paths are set to a single slash (/).
  • not really sure what you mean by a mismatch between the websites domain and actual host address. are you suggesting a dns problem? a hostname problem? not sure how the host name would be a problem. i host multiple domains on this server. my test server has 5 different virtual hosts; that server does not exhibit the same behavior.
  • if you could be clearer, i can explore and let you know.


thanks again for the help.

best.