I created a CMS using PHP/mySQL.
My login page is a simple form: username and password.
If a user is not logged in and tries to visit an admin page, then he/she is automatically directed to the login page first.
But, I don't like that anymore. I would like to create a checkbox that says "Keep me logged in!" on the login page for convenience. This way the user is only logged out when they go through the logout process.
But, what is the programming logic to set this up? A cookie that is stored on the device?
If that's the case, would I have to add some type of script to EVERY admin php page to get this to work then?
I've searched around, but couldn't find any straight answers. What do you think?
My login page is a simple form: username and password.
If a user is not logged in and tries to visit an admin page, then he/she is automatically directed to the login page first.
But, I don't like that anymore. I would like to create a checkbox that says "Keep me logged in!" on the login page for convenience. This way the user is only logged out when they go through the logout process.
But, what is the programming logic to set this up? A cookie that is stored on the device?
If that's the case, would I have to add some type of script to EVERY admin php page to get this to work then?
I've searched around, but couldn't find any straight answers. What do you think?