Hello there everyone!
I would like to write a basic user login/authentication system and just need a bit better understanding prior to getting started. For a persistent login system, it seems I want a cookie that stores an identifier upon successful login. That cookie can get checked on any visit, even if the session has died and get the new session ID to attribute to the user for that visit.
I have some ideas for later use, like binding to an IP, obfuscating the cookie's data but I want to make sure I understand the basic underpinnings of a login system that lives on past PHP's session.
Am I misunderstanding how the system works or am I missing something basic that needs to be factored in?
Thanks for your time!