I made a simple login function on my PHP site. It stores the login info in a session.
The problem is that the session is eventually deleted, and the user will need to log in again. How can I make a login system that keeps the user logged in "forever"?
I am aware that it's not recommended for security reason, but security is not an issue in this case.
Edit: I have a feeling cookie is the answer, but I'm not sure exactly HOW I should use the cookie. I know I said security is not an issue, but i want some very basic security. I can't just have "loggedin=true" in the cookie, or even the username and password stored in plaintext in the cookie.