Hey all,
I've been programming in PHP for a fairly long time and unfortunatly I've got an error which I think may be pretty simple but I just can't see it blushes
I'm working on a site for work, I'm repairing login code from the last programmers which left it all in a terrible state. Anyways the problem is my logins are dying after a REALLY short period of time (lasts about 24 hours). Through testing I'm finding that my cookie is dying.
$expire = 2592000;
setcookie("CONVmid","$mid",$expire,"/");
Have I figured out the expire time wrong? Am I over looking something simple. Thats ment to last about 30 days by my calcs but its only lasting a day max. Anyone that can offer any help it would be greatly appreicated.