Click to See Complete Forum and Search --> : destroy cookie


Alicia
12-12-2003, 06:40 PM
Hi guys,

I hope you guys can give me an idea how to set this code so once the user close the browser, the session or cookie will be deleted... i have tried to put -3600 in the code but the cookie seems still there..

please advise.

my code:

{
session_start();
setcookie("cartId", session_Id(), time() + 3600);
return session_id();
}

pyro
12-12-2003, 06:44 PM
Are you trying to delete a cookie or destroy a session?