1

I've got 2 shops:

  • shop.example.com
  • dev.shop.example.com (dev version)

If I login on first shop I can't logon on the 2nd anymore... It's a cookie problem.

mysql> select * from core_config_data where path like '%cookie%';
+-----------+---------+----------+----------------------------------------+----------------+
| config_id | scope   | scope_id | path                                   | value          |
+-----------+---------+----------+----------------------------------------+----------------+
|       370 | default |        0 | web/default/cms_no_cookies             | enable-cookies |
|       373 | default |        0 | web/cookie/cookie_lifetime             | 3600           |
|       374 | default |        0 | web/cookie/cookie_path                 | NULL           |
|       375 | default |        0 | web/cookie/cookie_domain               | NULL           |
|       376 | default |        0 | web/cookie/cookie_httponly             | 1              |
|       377 | default |        0 | web/cookie/cookie_restriction          | 0              |
|       383 | default |        0 | web/browser_capabilities/cookies       | 1              |
|      1977 | default |        0 | admin/security/session_cookie_lifetime | 10000          |
+-----------+---------+----------+----------------------------------------+----------------+
8 rows in set (0.00 sec)

What are the correct settings for the cookie_path and cookie_domain?

0

Cookie path should be / Cookie domain should be shop.example.com for live and dev.shop.example.com for dev system

0

You should use different root domains to avoid the login problem.This blog post explains about this particular issue in detail.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.