I want to manage a username session for lifetime. means for example if u look a website http://www.kongregate.com/ in this website i have registered and i haven’t logged out but whenever i open up this website my username appears there. No need to login again. so i want to do the same for my one of the games website. i have developed my website using php mysql flash. Can anyone please guide me?
Regards,
phphunger.
Try setting a cookie this way :
where $seconds is a big number eg 3 years (3*365*24*60*60).
and on your pages check if the cookie still exists :