Saving user details in browser cookie
Hello Everyone,
For one of the feature in our AEM application, when user click on login, 3rd party login page is opened. User will enter the username, password in that. Then, on successful login, this redirects to my AEM application page and we are saving the user details(user-token, access-token) in browser cookie. Then onwards, Application checks, whether the user details cookies are present in browser or not. If yes, that means user is logged in. Is it the right way of storing the user details in browser cookie? Or any other approach is there instead of using the browser cookie?
How can I mitigate the risk of: if someone deliberately modifies the user details cookie.
Thanks in advance.