Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- setting and deleting cookies
June 18, 2007, 8:38 pm
rate this thread
Re: setting and deleting cookies
echo "Cookie is set.";
Re-set the cookie, using a time in the past.
setcookie('LoggedIn', 0, 0, "/");
By the way, if this is for a log in system, it's hideously insecure. Users
can easily tamper with cookies. Use sessions instead.
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 115 days, 5:09.]
dict, thes & ency