Plugin and COOKIE_DOMAIN
-
It seems the plugin doesn’t respect the COOKIE_DOMAIN environment variable. In wp-config.php it is possible to set the following;
define( 'COOKIE_DOMAIN', '.. domain name ..');My understanding is that there is an expectation of plugins using this environment variable when setting cookies. For example, if this is set for “domain.name”, then any site that is available as “domain.name” or “www.domain.name” will share the same set of cookies.
As it stands this seems not to be the case, so I’m finding the plugin confirming on one domain, then not making the resulting cookie available to the other domain. (which has the potential to break compliance?)
There seems to be a very simple solution, in class-frontend.php, line # 264, if you replace get_cookie_domain() with COOKIE_DOMAIN ? COOKIE_DOMAIN : get_cookie_domain(), then everything seems to work as expected.
Is there any chance this change could be incorporated? Also, is there any way to submit PR’s? I would have done this if the code were on Github, but I can’t seem to find the Repo?
The page I need help with: [log in to see the link]
The topic ‘Plugin and COOKIE_DOMAIN’ is closed to new replies.