I'm using SharedPreferences to generate a session on android. I wanted to do a check that, after a while (5 minutes for example), it gives a timeout, zeroes that session and redirects to the Login. Is it possible to do this using SharedPreferences?
I'm using SharedPreferences to generate a session on android. I wanted to do a check that, after a while (5 minutes for example), it gives a timeout, zeroes that session and redirects to the Login. Is it possible to do this using SharedPreferences?
Good afternoon,
It can be used normally, but you have to pay attention to the real need to use it. If your application communicates with some webApi, it would be more interesting to store this connection there.