php_guy Posted January 20, 2011 Share Posted January 20, 2011 Hello all, I'm using sessions to store a username/password For example, I have the following at the top of all my source files: <?php session_start(); if(!isset($_SESSION['myusername'])){ header("Location:login.php"); exit; } else { $username = $_SESSION['myusername']; $permissionLevel = $_SESSION['mypermissionlevel']; } ?> Now, I'd like to add a "Remember Me" checkbox so they can store their login info (securely!) so they don't have to log in all the time.... How do I do this? Thanks Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 20, 2011 Share Posted January 20, 2011 set a cookie and check for it when they return. http://www.google.com/search?client=safari&rls=en&q=php+remember+me+cookie&ie=UTF-8&oe=UTF-8 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.