Jump to content

Set cookie expire


Recommended Posts

Hello everybody I need your help.
I've setted a specific cookie ($cookie->__set("foo", 25); )
But the expiry date is the date default setting in the __constructor method in class Cookie ( $this->_expire = isset($expire) ? intval($expire) : (time() + 1728000); ).
But I need to unset this cookie ($cookie->foo) ONLY this cookie, after one hour... But i don't find any solutions.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More