thank you very much for you prompt reply.
I just want to recheck 2 things,
1- where do you tell the cookies to be set if and only if the user is logged in?
2- what does this section exactly do?
setcookie ("cachen", "y", time()+ (86400 * 30), "/","www.(mysite.com)");
I mean what is the purpose of those parameters: “cachen”, “y”, time()+ (86400 * 30),and “/”
what about www.(mysite.com)? should I replace this with https://mysite.com since I redirect the www version to http?
With thanks,