Click to See Complete Forum and Search --> : cookies


keko2005
08-12-2005, 07:58 PM
im making a user reg, and login. i want to make it so that when the user comes to my site, the dont have to login, it logs them in automatically, like this website. is this done with cookies? if so, where do i implement them into my code in the login page, or th user regiustration, and on every page, should there be a script to check if theres a cookie written? i dont know if im asking the right questions or not, never used cookies before. thanks

cornercuttin
08-12-2005, 09:04 PM
yeah, you use cookies. you need to read up on the properties of cookies. each cookie has (i think) 5 attributes, and 1 is how long the cookie is set for, that is, how long until it expires.

when implementing this, also remember that there will be those who don't allow cookies, or who manage them often. you need to keep this in mind whenever you build your website.