I have an application that requires user registration. I have an application related to PHP on my server to execute registration / login logic and so, this is not a problem at all.
But I want the user session to be local, so the user does not need to log in again every time the application starts.
So I want something like this:
- The first user, he opens the application, registers and logs into the system.
- Do some things with the application and close it.
- Open the application again, the user is recognized, so he does not need to log in again.
I only need to save the identifier and username (both extracted from the database in the php login method). What is the best way to do this?
I was thinking about making user preferences, storing data in files, or even a local database (sqlite). Any suggestions?
source
share