Hey,
Set your cookie paths again, then clear the var/cache and var/session folders, then, most importantly, clear your browser cache!
Hi, I tried your solution many times, both remote and localhost, were all failed. I really don’t know why, I follow the same steps like yours:
Navigate to System > Configuration > Web.
Under Cookie Path, enter “/”
Under Cookie Domain, enter “.yourdomain.com”
Do not enter the quote marks!
Once saved, clear your Magento cache, empty the var/cache and var/session folders. Also clear your browser cache.
is it any way to solve this issue easily? This plugin is so awesome except this issue. Really confuse about this.
can you help me plz. Thx!
Can I double check that you added your actual domain and not “.yourdomain.com”?
yes, It’s my actual domain.
my actual domain name is “smbtest.electricdistro.com”, so I entered “.smbtest.electricdistro.com”
plz advise, thx!
Try just “.electricdistro.com”
And clear cache/cookies in browser and Magento
Hi, this solution didn’t work for me. Same issue happened.
btw, I’m also trying at my localhost, it is works only when I create a new account, but it is failed after I logout, when I trying to login again, the login lost in my wordpress page.
I’m using MAMP to build the magento and wordpress.
magento url: http://localhost:8888/test-magento/
wordpress url: http://localhost:8888/test-magento/wp/
if I set cookie path to “/” and set Cookie Domain to “localhost:8888/test-magento”, this stops me from logging in at all, and the login screen just refreshes without an error. I have cleared Magento cache, empty the var/cache and var/session folders, browser cache… A lot of times, still not working.
plz advise! thx!
My colleague already help me to figure out why this happened.
we check the Cookie Name of the website, and found there are two different Cookie Name using in the website.
magento store using the cookie name called “PHPSESSID”.
wordpress using the cookie name called “frontend”
magento and wordpress need to sharing the same cookie, so here is our solution:
go to plugin folder, modify the file “mwi.php”,
find:
// Session setup
Mage::getSingleton(‘core/session’, array(‘name’=>’frontend’));
replace to
// Session setup
Mage::getSingleton(‘core/session’, array(‘name’=>’PHPSESSID’));
anyway, thanks for this awesome plugin, it’s the best plugin for Magento WordPress Integration.
Thanks for the update. If you use github I’d appreciate a pull request!
Hi,
I have a local test server set up with Magento and WP installed like this:
Magento: subdomain/html/
WP: subdomain/html/WP
Cookies weren’t carrying across the WME bridge.
I applied the solution in this thread to give Magento and WP the same cookie. It solved most cookies issues, but I can’t seem to get the call to cart showing what’s in the user’s cart. I am using
<?php the_block('cart_sidebar'); ?>
That refuses to show anything except
My Cart
You have no items in your shopping cart
However, using the call
<?php the_block('top.links'); ?>
provides links that correctly send the user to their account, their cart, their checkout, etc.
How can I get the call to ‘cart-sidebar’ reflecting what’s in the user’s cart?
Thank you for any assistance.