I am currently working on an app that has the main purpose of letting a person log in and then displaying some information to that person.
I am using HttpUrlConnection to send and receive input from the website.
Since the app is mainly web-oriented, I need to make sure that a user can stay logged in even after closing the app, which means that I need to save Session Cookies somehow.
I have read about CookieManager and CookieStore, however, they are not fit for this because they only store cookies while app is open and they lose all information as soon as app is closed.
What is a good and safe way to store session cookies permanently on the device?