I've got a problem setting cookies on my site. I want to set a cookie that last for a year and I've used the line
setcookie( "membercookie", mysql_insert_id(), time() + 31536000);
But the cookie expires when the browser is closed.
Anyone got any idea of what I'm doing wrong?