topflight Posted June 15, 2010 Share Posted June 15, 2010 I am currently using sessions, and I would like to create a remember me function in my login.php file so when the user logout it will destroy/unset the session, however when they return to the site their login info will automatically be in the box. I know you have to use session may some please give me an example with a form and php code thanks. Link to comment https://forums.phpfreaks.com/topic/204792-form-remember-me/ Share on other sites More sharing options...
DavidAM Posted June 15, 2010 Share Posted June 15, 2010 To do the Remember Me, you have to use COOKIEs. Store the user's login name in a cookie, and have the script check for the cookie before presenting the form. Link to comment https://forums.phpfreaks.com/topic/204792-form-remember-me/#findComment-1072154 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.