Thanks SilverB, I appreciate your help.
Originally Posted by SilverBulletUK
I have a question about cookie, like the following :
just to be sure, as I understand alone that this line will keep the cookie ( loggedin ) for 24 hours ( because each hour = 3600 seconds ), and in case I want to modify it for 10 or 20 days, I will have to modify the number of hours, or thre is an option to add days ??
setcookie("loggedin", "TRUE", time()+(3600 * 24));