Controlling the session on android

1

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?

    
asked by anonymous 05.07.2017 / 18:02

1 answer

2

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.

    
05.07.2017 / 18:08