Title: Session problem in magento and wordpress
Last modified: August 21, 2016

---

# Session problem in magento and wordpress

 *  Resolved [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/session-issue/)
 * Hi James,
    I have two sections one is magento as a shop and other is wordpress
   as a blog. I have used “magento-wordpress-integration” plugin to get header and
   footer in all wordpress pages from magento. I was also purchased the magento 
   extension “Single Sign-On for Magento and WordPress” to manage user in both section.
   All these sections are working properly but the problem is when I was logged 
   in magento it will create a session in magento but wordpress header which is 
   fetched from magento do not manage session in wordpress page. The session will
   be destroyed somewhere before blog index page load. I need to manage magento 
   session in blog pages.
 * [http://wordpress.org/plugins/magento-wordpress-integration/](http://wordpress.org/plugins/magento-wordpress-integration/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/session-issue/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/session-issue/page/2/?output_format=md)

 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/session-issue/#post-4485313)
 * Hello,
 * Have a look at your Magento cookie settings. The Cookie path needs to be “/” 
   and the domain needs to be “.domain.com”
 * Without the quotation marks of course.
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485315)
 * Hello,
 * I have tried the same solution but after save configuration setting magento admin
   and customer log in stop working. It will not display any error but doesn’t allow
   to log in. I have two different sections for both wordpress and magento
    Mydomain.
   com/shop and Mydomain.com/blog Please give me some solution on this.
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485316)
 * Once your cookie path and domain is set, make sure to clear the var/cache and
   var/session folders via FTP, and also clear your browser history and cookies.
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485317)
 * yes i have done the same but its not allow to log in.
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485318)
 * Can I ask what you entered for your Magento cookie settings?
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485319)
 * yes,
    in my domain name (web/cookie/cookie_domain) – [http://www.linuxdemo.projects.net](http://www.linuxdemo.projects.net)
   and in cookie path (web/cookie/cookie_path)- /myproject/shop/
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485324)
 * Hi,
    Did you find any solution on this?
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485325)
 * Your domain and path are incorrect. It should be
 * .linuxdemo.projects.net
    /
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485333)
 * Hi,
    i have changed my config setting with same as you mentioned not allow to
   log in for both admin and customer. my all magento setup in shop folder – .linuxdemo.
   projects.net/myproject/shop/
 * Please suggest me any solution for this.
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485334)
 * Try .projects.net as the domain, then clear all browser cookies, Magento var/
   cache and magento var/sessions.
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485338)
 * Hi,
    Thanks a lot its working… I have one more question if I reset password in
   magento or delete user from magento it will not reflecting to wordpress user.
   Is there any solution on this? Please suggest anything on this.
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/session-issue/#post-4485347)
 * Glad it’s working!
 * I made a Single Sign On extension for Magento, which will do what you need when
   used via the frontend: [http://codecanyon.net/item/single-signon-for-magento-and-wordpress/861453?ref=jamesckemp](http://codecanyon.net/item/single-signon-for-magento-and-wordpress/861453?ref=jamesckemp)
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/session-issue/#post-4485366)
 * Hi James,
 * I have uploaded same file on new client’s server with domain name “xyz.project.
   com” and set a cookie domain as a “project.com” in magento configuration. But
   is destroy session automatically when any wordpress page is refresh and also 
   it will logged in into wordpress automatically same problem is arise on my local
   server as well that wordpress is not logged in automatically.
 * I have also set domain name on my wp-config file but it’s not working.
    Please
   help any provide any solution as early as possible.
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/session-issue/#post-4485368)
 * Hi. It should be .project.com not project.com
 *  Thread Starter [Rubina07](https://wordpress.org/support/users/rubina07/)
 * (@rubina07)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/session-issue/#post-4485395)
 * Hi James,
 * It is possible for me to add code when i delete user from magneto it will be 
   automatically deleted from wordpress also.
 * Please suggest me the proper guidance for this.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/session-issue/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/session-issue/page/2/?output_format=md)

The topic ‘Session problem in magento and wordpress’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magento-wordpress-integration_1f262e.
   svg)
 * [Magento Wordpress Integration](https://wordpress.org/plugins/magento-wordpress-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magento-wordpress-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magento-wordpress-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magento-wordpress-integration/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [Rubina07](https://wordpress.org/support/users/rubina07/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/session-issue/page/2/#post-4485404)
 * Status: resolved