Does any one know how long this cookie lasts
and can you show me how to make it last 30 mins please?Code:setcookie("id", $user[id],time()+(60*60*24*5), "/", "");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "");
Printable View
Does any one know how long this cookie lasts
and can you show me how to make it last 30 mins please?Code:setcookie("id", $user[id],time()+(60*60*24*5), "/", "");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "");
60 * 60 * 24 * 5 seconds. Means 5 days.
30 minutes is 30 * 60.
Looks like someone didn't read the manual before asking...
thanks works now :P