+ 3
First things first: Do not ever display credentials and don't store credentials in plain text.
Now, what you want is a sort of "remember me" or "keep me logged in" functionality? Is that correct?
+ 1
All right đ Such a functionality is usually accomplished using a special remember-me token, stored client side in a cookie. Be sure to make that token big, and I mean big, and preferably unpredictable. Of course, the same token needs to be stored on the server as well, for identification and verification. Details on how to do that will vary with the backend technology that you use.
0
You have to create cookies for that.