Control the session on android

Asked

Viewed 100 times

1

I’m using Sharedpreferences to generate a session on android.
I wanted to make a check that after a while (5 minutes for example), it give a timeout, reset this session and redirect to Login.
You can do this using Sharedpreferences?

  • 1

    Yes it is possible. Look at this reply, is not the same but the same principles apply.

1 answer

2


Good afternoon,

can be used normally, but you have to pay attention to the real need to use this. If your application communicates with some webApi, it would be more interesting to keep this connection there.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.