Hi!
I'm doing a loginscript for a website and I try to make a "Remember me" option so users don't have to login every time.
So basically what I want the script to do is to keep uid etc in a session during browsing and save it as a cookie for the next time the user visits the page (I guess this is pretty much the standard way of doing it...).
When I read about session cookies I thought "that's the way to do it!", but I haven't really managed to figure out how...
I have the "PHP and MySQL Web Development" book (SAMS) which says "When you are using PHP sessions, you will not have to manually set cookies. The session functions will take care of this for you".
This sounds like a cookie will be created for every session variable I create, but i suspect this is not what happens...
Can someone please try to explain to me what happens when I create/change a session variable and when the session is destroyed?
Do I still have to set the cookies with the setcookie() command? And if that's the case wot da heck is the session_set_cookie_params() good for???
Sorry, I'm a bit frustrated! And it's late...