dsws
Forum Replies Created
-
I think the setcookie() command has to come before any HTML. In other words, it has to come before the beginning <html> tag in the code that is being output. The web server has to get the cookie command prior to the html file header (unless output buffering is turned on) otherwise the cookie won’t get set. Not sure if that was the case here but it might have been so I thought I would mention it just in case.
Toggling “Allow Per-Page/Post Overrides” to YES seems to have fixed the problem. It writes cookies now. And, the cookie timeout in days can now be set while also having the “Checking this will kill the cookie immediately” unchecked.
I think issue only happens when you have the “Allow Per-Page/Post Overrides” set to NO.
Hope this helps.
If you re-check the “Kill Cookie” check box (after having saved it off) it will let you into the site and sub pages but, this seems to only set a session cookie not a 10 day or 2 week cookie. If you close your browser and come back, you have to click the “Yes” again. Doing this seems to have set a cookie called “wpcwv2_validated[siteWide]” – expiring at the end of the session.
Hope this information helps. I wish I was PHP programmer. ??
I think it should be setting a cookie called wpcwv2_validated but it doesn’t appear to be setting that cookie for some reason which is why it loops.
I’m having the same issue as well. Any idea what is causing it?
If I click YES it keeps bringing up the dialog box in an endless loop.
https://www.westernspirits.me/
Toggle Content Warning: Enable
Sitewide: Enable
Kill Checkbox: (unchecked)
Cookie Expire: 10 Days
Allow Page Overrides: No
Default for Overrides: Dialog Enabled“Other Options” URL for YES is set to “/”. I could not pick a page as that option didn’t work. The radial button would not change to page and the drop down would not activate unless the radial button is checked (I assume).
Any assistance would be greatly appreciated.