Jump to content

Remember Me Login Feature


mitzleah

Recommended Posts

I already seen some tutorials about it, downloaded the files and tried it. But it seems it's not working at all. :(

Username and password were set to cookies. I wonder how could the usename and password textfield will remember set cookies???

Please help here!
Thanks in advance!
Link to comment
https://forums.phpfreaks.com/topic/26981-remember-me-login-feature/
Share on other sites

most times you create reference hash, then add that hash to the cookie. Then when the user visits, you check for the cookie, then look in your session table or the table that holds the [b]remember me hash[/b], then take the username and password from that rows to continue the session or auto login them in by starting a new session with their information that is referenced by the [b]remember me hash[/b].


the form used to remember cookies that were set... the problem now is even when the input text username and password were empty, I was able to login via submitting it... weird!

As far as security issue is concern... putting a value to it is unsecured. eg. <input type="textfield" name="uname" value="<?= $_COOKIE['uname'] ?>"> as well as in password.

My question is: HOW COULD I BE ABLE TO PUT SET COOKIES OR MAKE IT VISIBLE TO THE FORM (USERNAME AND PASSWORD INPUT TEXT)???

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.