Log in

View Full Version : Unset vbsetcookie


woostar
04-10-2008, 09:30 AM
I've set a cookie using:-
vbsetcookie('modcookie', $var, permanent);

Is there a vbulletin function to unset this cookie... or what would be the correct vb way to delete it?

Regards,
W.>

Dismounted
04-10-2008, 10:51 AM
If you are referring to "deleting" the cookie, you can't in PHP. To kill it, just overwrite it.
vbsetcookie('modcookie', '');

woostar
04-10-2008, 11:48 AM
thanks for that (dunno why I didn't figure that myself) :)