Hi there, thanks for checking out my thread.
I have just about no experience working with cookies in PHP, although I do have some moderate experience with other elements of PHP and with MySQL.
For a site I'm making, I want to create a Login page where users enter their info and password. Then I want to send them to a script that checks the username/password against the database, and sends the user to the members page if successful, or back to the login page if unsuccessful.
However, if they are successful, I want to set a cookie to store their username and password for, say, a month. I don't know the code for making cookies though. I know it has to appear as a header on the page. How can I make it set a cookie only if the login is successful, and set the cookie to the desired username and password?
Also, the next time they access www.mysite.com will all of the variable automatically be passed into the first page? is that how it works?
Thanks so much!
-Aaron