Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/xxxxx.com/httpdocs/dmd/header.php:26) in /usr/local/psa/home/vhosts/xxxxx.com/httpdocs/dmd/cart.php on line 12
Thats the function:
function GetCartId()
{
if(isset($_COOKIE["cartid"]))
{
return $_COOKIE["cartid"];
}
else
{
session_start();
setcookie("cartid", session_id(), time() + ((3600 * 24) * 30));
return session_id();
}
}
Don't know whats wrong with this:
setcookie("cartid", session_id(), time() + ((3600 * 24) * 30));
Can someone helps me?
Cheerz
Kris
Error with cookie
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK