I try to keep a particular user login on repeated visits as long as he did not logout.
So I make us of a session
$cookieexpire = (606024*365);
session_set_cookie_params($cookieexpire,"/","mydomain.com");
session_start();
This cookie is suppose to be expire in a years time, but it seems that it will expire within a few hours. So I have change it to
$cookieexpire = time() + (606024*365);
session_set_cookie_params($cookieexpire,"/","mydomain.com");
session_start();
But my cookie still seem to expire within a few hours. So do I really need the time() ? If not, whats wrong with my coding?