How to use cookies in the register and login phase?
User logged in -> I use their id to set as cookies -> they closed the browser -> then when they come back, the main page detect whether there is a cookies -> if yes, log in the user back..
It doesn't sound right, because I need to store the username and password as cookies as well?