Created
September 24, 2015 16:54
-
-
Save midoriberlin/fb88b0112bbc9677780a to your computer and use it in GitHub Desktop.
Setting a cookie
Additionally, the constant is singular: DAY_IN_SECONDS <----correct vs. DAYS_IN_SECONDS <---- incorrect
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this will set the expiry date 1 month past the epoch.
I believe you forgot a time() call in the 3rd param like so: