Cookie Deletion? Define deletion?
Anyway i can actually delete cookies?
Any way i can delete variables from the DEFINE command.
Just set the expiry date of your cookie to the past, or use unset($_COOKIE)
And DEFINE is meant for constants, ie DEFINE('GRAVITY', '9.8') so if you want to modify/change it just use a normal variable.
Thanks, thats what i was expecting.
Still no luck with cookie deletion.
SitePoint Enthusiast
I don't know what the problem could be, if a cookie is set with a past timevalue, the browser will simply delete it.
I use this code to delete my cookies:
[php]setcookie ("name","",time()-3600);[php]
SitePoint Enthusiast
you forgot the / in [/php ]
yes, thats true. I want to DELETE my cookies BEFORE the time validation.
found out how to fix it
set the value as 0
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks