Cookie Time (mmmm)<

windows

Guest
In my website i am using Cookies to record whether or not a user is logged in as well as all their details, eg:
Username, Password, email, their prefs etc;
and i have a log out page, wot is the easiest way to delete all cookies without having to do this...
setcookie(" COOKIE NAME ", "" time()-10000)
...every time?

Please get back to me as this would be helpful


AHHQ_Manactually, using cookies probably isnt the best idea, as many people will not have cookies enabled in the first place.

setcookie(" COOKIE NAME ", "" time()-10000) is how i've always done it, although im sure there is a method of deleting a cookie. i cant seem to find anything on php.net however

this might help (<!-- m --><a class="postlink" href="http://forums.devshed.com/t3532/s.html">http://forums.devshed.com/t3532/s.html</a><!-- m -->)Originally posted by AHHQ_Man
wot is the easiest way to delete all cookies without having to do this...
setcookie(" COOKIE NAME ", "" time()-10000)
...every time?

Please get back to me as this would be helpful


AHHQ_Man
you have to do that for every cookie.Dam...

Oh well its not that many cookie values im setting (like 10, lol). How dows HTMLForums carry its variables across? Or does it retrieve them from the database everytime?
And are cookies really a bad idea?

Thanx
AHHQ_Manthey use cookies for logging in, and sessions for everything else.

cookies are not all that bad, some just misuse them

also your image is too big, please make it smaller per these guide lines (<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=19248">http://www.htmlforums.com/showthread.ph ... adid=19248</a><!-- m -->)There you go HTML forums ppl!
No more IMG to give ur bandwidth usage a rest!

lol
 
Top