Originally posted by Aybabtu
How do you make a page remember your password?
With a cookie. You use setcookie() to store the value of their username/id (NOT their password! Encrypt it if you dare do that), and $_COOKIE["username"] to get the username. It's just a simple check for this as to whether or not they are logged in or not.
Originally posted by Aybabtu
...browser cache. How do I fix this?
You need to use the header() function to set the cache-control to "no-cache", "no-store", and 'must-revalidate":
header("Cache-Control: no-store, no-cache, must-revalidate");
You can also set the pragmatic information:
header("Pragma: no-cache");