Skip to main content

Timeline for Cookie is not set

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Jun 15, 2020 at 8:21 history edited CommunityBot
Commonmark migration
Apr 12, 2017 at 12:04 vote accept geoB
Apr 12, 2017 at 2:03 answer added user42826 timeline score: 0
Apr 11, 2017 at 18:43 comment added user42826 I just noticed your setcookie expiretime is wrong too. You need 'time() + 3600'
Apr 11, 2017 at 18:23 comment added user42826 Are you sure COOKIEPATH and COOKIE_DOMAIN exist? I wouldnt assume so. I would adding checks or setting them manually. For testing I recommend hard-coding them.
Apr 11, 2017 at 2:14 comment added geoB I've edited the question to include a 'feature' of cookies - that not being set in the if statement is not a sufficient test. So the real question may be why wp_redirect() is defeating the cookie set.
Apr 11, 2017 at 2:12 history edited geoB CC BY-SA 3.0
clarify the question
Apr 11, 2017 at 0:51 comment added user42826 IMO, init is too late to insert cookies. You need to find an earlier action hook.
Apr 10, 2017 at 22:51 history asked geoB CC BY-SA 3.0