errors – What are the issues using the Test Cookie Fix?
Question
While login, I was getting this error:
Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress
If I try again to log in, then I can log in!
When I searched for the solutions, I found a code that needed to be added to functions.php, I added the code, and it worked.
This is that code:
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
When I tested it, everything seems working fine. But while providing this code, people says, “even though it is not a recommended way,” use the code for the fix!
So, my question is, is there any serious drawback/issue using this code on an ecom website?
Thanks
Akhil.
0
9 months
2022-08-24T14:18:32-05:00
2022-08-24T14:18:32-05:00 0 Answers
0 views
0
Leave an answer