Look for cookies?
-
I need to put something in my WordPress header to look for a cookie that may be set from another section of the site (a shopping cart). I don’t want WordPress to set the cookie – I just want it to *keep* the cookie if one has been set.
So if someone goes to the blog, then goes to the shopping cart, the cart sets a cookie. I would like for wordpress to look for, and keep, that cookie if the user returns to the blog.
Would anyone know the proper code to do that? I keep thinking it’s something like
<?php if isset shopping cart cookie { keep cookie }?>
Something simple like that. I also know this code has to be somewhere in the header – *before* anything else is processed. I need to figure out if I should put it in the wp-blog-header.php file, or if I just put it in the wp-content/themes/THEME/header.php file.
If anyone has any ideas, that’d be great (I’m having a brainfart day – I *so* used to know how to do this, and the stuff I Google for is over my head for some reason. I think it’s because tomorrow’s my birthday, and my brain cells just want to die as fast as they can, because I’ll be officially old!)
Thanks for any pity…I mean help…anyone can offer. ??
- The topic ‘Look for cookies?’ is closed to new replies.