I'm trying to write a login page that sets some cookies. They work fine as long as I only set the cookie name and value. If I try to set an expiration time, it doesn't set the cookie. I've tried just adding the timeout, and putting in all the parameters - nothing works except just the name & value.
This works:
setcookie($n1, $accl);
These do not:
setcookie($n1, $accl, time()+300);
setcookie($n1, $accl, time()+300, '/', '', 0);
Does anyone have any ideas on this? Thanks!