I'm new to java web security. I've done a project that authenticates and authorizes very well using JSF form-based authentication. But the problem is that when i close the browser without logging out and reopen the browser and try to access the project it brings the login page and i can not login. To login i've to deploy the project again. I'm not trying to add the 'Remember Me' feature. Can you guys help me on what I've to do to stay logged in even when i close and reopen the browser and access the project without being asked to login again unless i logged out intentionally. Thank you in advance.
Asked
Active
Viewed 74 times
0
-
1Does this answer your question? [How to implement "Stay Logged In" when user login in to the web application](https://stackoverflow.com/questions/5082846/how-to-implement-stay-logged-in-when-user-login-in-to-the-web-application) – Adam Waldenberg Apr 24 '21 at 03:29
-
No. I'm no trying to add the 'Remember me' feature. The problem I'm facing now is once i logged in and close without logout, reopen the browser, and try to access my project it does not log me in automatically. It takes me to the login page and the user name/email of the the account that i previously logged in with stays at the user name/email field and i cannot login again. To logon i have redeploy the project. I'm merely trying to avoid this problem? – Negasi Kiflom Apr 24 '21 at 14:42
-
1You asked for advice. The other question referenced explains a general approach on how to implement "remember me" functionality. Without more information it's impossible to know whats wrong in your application specifically. The behavior you are describing could be caused by a number of things. – Adam Waldenberg Apr 25 '21 at 02:16