Damelinks
unread,Sep 30, 2008, 8:45:01 AM9/30/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PHP Programming
Goodday Everybody, I set cookie by using the codes below
<?php
$cookie_expire = time()+3600;
$cookie_name = "users";
$cookie_value = "$_POST[f_name] $_POST[s_name]";
$ret = setcookie('users', $cookie_value, $cookie_expire, "/");if (!
$ret)
{
echo "Unable ot set cookie";
}
?>
and the cookie was actually set and are working as espected but I am
trying to destroy the cookie using the codes below.
<?php
setcookie('users', 'NULL', mktime()-10000, '/');
?>
but it is not destroying the cookies. Please I need your help
because
I am using the cookies for users authentation.
Actually, i designed the website with my laptop and the cookie is
working very well there. But when I took the website to a desktop,
the cookies will set but refuse to destroy and I am using the cookie
for users authentation.
Thanks
Damelinks