You are here: Home
Support site for Tips and Tricks HQ premium products
I changed
if(setcookie($cookie_flavor, $cookie_dough, 0, ‘/’, COOKIE_DOMAIN))
to
if(setcookie($cookie_flavor, $cookie_dough, time()+60*60*24, ‘/’, COOKIE_DOMAIN))
and the cookie now expires in 24 hours.
Perfect and thank you very much for the truly amazing tech support.
I totally understand not being supported once I customize the code.
Thank you for pointing me to the right place.
If I wanted to edit the cookie expiration manually, can that be done in the code?
If so, can you point me in to the right file or code? For my use, I seriously doubt someone would be smart enough to share a cookie, but it’s really easy to forward an email to a bunch of buddies.
Odd. I did this before I asked, and the email came from what I wrote. I checked today and the email is now showing what I had in that field. Either it was operator error and I tested this before saving the email, or something was cached in the server.