i set the cookie to last 5 minutes setcookie("testcookie", "test", time()+300); was the exact code i used but when i waited 5 minutes the cookie was still there...does anyone know why? lol