![]() |
Change the date a cookie expires?
How do I change the date a cookie is set to expire, to say April 15th??
PHP Code:
|
time()+60*60*24*30 will cause it to expire in 30 days. You can alter that to what you wish. The key is not to hard code the time unless you want a specific date for it to expire.
If you wanted a specific date then use the mktime function. |
All times are GMT. The time now is 05:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|