{"id":360,"date":"2010-09-15T19:10:25","date_gmt":"2010-09-16T03:10:25","guid":{"rendered":"https:\/\/www.numinix.com\/blog\/?p=360"},"modified":"2019-05-29T11:13:55","modified_gmt":"2019-05-29T18:13:55","slug":"correcting-session-issues-in-zen-cart-after-upgrading","status":"publish","type":"post","link":"https:\/\/www.numinix.com\/blog\/correcting-session-issues-in-zen-cart-after-upgrading\/","title":{"rendered":"Correcting Session Issues in Zen Cart After Upgrading"},"content":{"rendered":"<p>Zen Cart upgrades, particularly 1.3.9, often have changes to how Zen Cart handles sessions.\u00a0 This can cause login issues, add to cart issues, and problems to any other functionality that relies on sessions.<\/p>\n<p><strong>Symptoms<\/strong><\/p>\n<p>The two most common issues are with adding to cart and logging in.\u00a0 With adding to the cart, even when you click add to cart, the shopping cart still shows it is empty.\u00a0 If you check ADMIN-&gt;TOOLS-&gt;WHO&#8217;S ONLINE you&#8217;ll see a new session being created every time.\u00a0 If this is not happening, then sessions probably aren&#8217;t the issue.\u00a0\u00a0 The same thing will happen when trying to login or register, a new session will be created each time but you will not be able to login.<\/p>\n<p><strong>Possible Solutions<\/strong><\/p>\n<ol>\n<li>First, clear your browsers cache, then restart your browser and try again.\u00a0 If this resolved your issue, the problem may only affect those users who have stored data in their browsers from before the upgrade.\u00a0 In time this will sort itself out.\u00a0 However, if on the same browser you continue to have the issue or it happens intermittently, continue reading.<\/li>\n<li>Next, you should make sure the issue isn&#8217;t related to any particular module.\u00a0 Common culprits of session issues can be SEO URLs modules like Simple SEO URLs, Magic SEO URLs, or Ultimate SEO URLs.\u00a0 Try disabling the module, and repeat step 1 above.\u00a0 If this solves the issue, try upgrading to the latest version of the module and trying again.\u00a0 If the latest version doesn&#8217;t work, disable the module and contact the author.<\/li>\n<li>Check ADMIN-&gt;CONFIGURATION-&gt;SESSIONS-&gt;SESSIONS DIRECTORY and make sure the path is correct and matches what you see in your configure.php files.<\/li>\n<li>In your configure.php files, set the cache methods to &#8220;db&#8221; and &#8220;database&#8221;.<\/li>\n<li>Try overriding the cookie path by uploading the following file to \/includes\/extra_configures\/<br \/>\n<a href=\"https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2010\/09\/override_cookie_path.zip\">override_cookie_path<\/a><\/li>\n<li>If using Simple SEO URLs, open .htaccess and change\n<pre lang=\"mysql\" escaped=\"true\">RewriteRule\u00a0^(.+)\u00a0index.php\/$1\u00a0[E=VAR1:$1,QSA,L]<\/pre>\n<p>to<\/p>\n<pre lang=\"mysql\" escaped=\"true\">RewriteRule\u00a0^(.+)\u00a0index.php\/$1\u00a0[E=VAR1:$1,QSA,L,PT]<\/pre>\n<\/li>\n<li>This is not a solution, but was noticed in an upgrade performed on a client&#8217;s website by a third party.\u00a0 We found that issue could be resolved by changing ADMIN-&gt;CONFIGURATION-&gt;SESSIONS-&gt;RECREATE SESSION to &#8220;False&#8221;.\u00a0 Normally this should be set to &#8220;True&#8221; and may mean that the session files were not properly upgraded.\u00a0 In this case, carefully recheck your upgrade.<\/li>\n<\/ol>\n<p>Regardless of which solution you try, always repeat step 1 after each step.\u00a0 Hopefully one of these will resolve the problem.<\/p>\n<p>If you happen to find another common source for this issue, please post your resolution and we&#8217;ll add it to the tutorial.<\/p>\n<p><script type=\"application\/ld+json\">\n      {\n        \"@context\": \"http:\/\/schema.org\",\n        \"@type\": \"NewsArticle\",\n\t\"dateModified\": \"https:\/\/calendar.google.com\/calendar\/r\/day\/2019\/5\/29\",\n\t\"mainEntityOfPage\": \"https:\/\/www.numinix.com\/wordpress\/2010\/09\/15\/correcting-session-issues-in-zen-cart-after-upgrading\/\",\n\"author\": {\n    \"@type\": \"Person\",\n    \"name\": \"Jeff Lew\"\n  },\n   \"publisher\": {\n    \"@type\": \"Organization\",\n    \"name\": \"Numinix Web Developers\",\n    \"logo\": {\n      \"@type\": \"ImageObject\",\n      \"url\": \"https:\/\/www.numinix.com\/images\/banner_hero_clarity.png\"\n    }\n    },\n        \"headline\": \"Correcting Session Issues in Zen Cart After Upgrading\",\n        \"datePublished\": \"2010-09-15T16:00:41Z\",\n        \"image\": [\n          \"https:\/\/media.licdn.com\/dms\/image\/C560BAQFjWJ-r6HLAfQ\/company-logo_200_200\/0?e=2159024400&v=beta&t=KzCK1BdfCM48zSzjZ6lsxOsr7sfO0_EVarvyFHWW6H8\"\n        ]\n      }\n    <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zen Cart upgrades, particularly 1.3.9, often have changes to how Zen Cart handles sessions.\u00a0 This can cause login issues, add to cart issues, and problems to any other functionality that relies on sessions. Symptoms The two most common issues are with adding to cart and logging in.\u00a0 With adding to the cart, even when you&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[142,3],"tags":[185,184,183],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-zen-cart-optimization","tag-cannot-add-to-cart","tag-sessions","tag-zen-cart-upgrades"],"modified_by":"Numinix Developer","jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":0,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}