LOGIN - Stay Logged-in -- Session Cookies -- Sessions
Posted: Thu Jun 08, 2006 9:19 pm
I can't find anything to help me with this:
I have a database with the usernames and passwords in it, and I have them 'encrypted', using mcrypt_encrypt more than once to encrypt the users' password. I know how to get this data back to the raw password, but what I want to do is make it so that when the user logins in a session is set with the username and pw (encrypted version) is in their with another variable of loggin == 1 if their logged in. I also want to make it so that if the users selects stay logged in they do just that. I have the login page on http://www.URL.com/Login/, and I want the session and cookies to be for the WHOLE website: http://www.URL.com/. I just can't get anything to work. So some examples of codes, and stuff to read could REALLY HELP. This is day 12 on PHP, so yeah I really don't know a lot, but I am learning.... I want to get my website done by the end of this summer, so I can be done with it.
THANKS FOR ALL OF THE HELP IN ADVANCE.....
CHRIS!!!!
I have a database with the usernames and passwords in it, and I have them 'encrypted', using mcrypt_encrypt more than once to encrypt the users' password. I know how to get this data back to the raw password, but what I want to do is make it so that when the user logins in a session is set with the username and pw (encrypted version) is in their with another variable of loggin == 1 if their logged in. I also want to make it so that if the users selects stay logged in they do just that. I have the login page on http://www.URL.com/Login/, and I want the session and cookies to be for the WHOLE website: http://www.URL.com/. I just can't get anything to work. So some examples of codes, and stuff to read could REALLY HELP. This is day 12 on PHP, so yeah I really don't know a lot, but I am learning.... I want to get my website done by the end of this summer, so I can be done with it.
THANKS FOR ALL OF THE HELP IN ADVANCE.....
CHRIS!!!!