I’m having trouble setting a cookie with any parameters other than the cookie name.
When I use this, no cookie shows up in my browser’s cookie cache:
setcookie( “firstVisit”, “”, 606024*365 );
When I set the cookie with ONLY the name, it DOES show up in my browser’s cookie cache:
setcookie( “firstVisit” );
I’m using this cookie to display special content based on a visitor’s first visit to the site, and I don’t want that special content to display again (unless they clear their cookies or whatnot), so I need to be able to set the expiration date. This seems so simple, and I can’t figure out why it’s not working. Has anyone else experienced this?