is there a good way to keep a user logged in with a cookie?
I’ve already created a CookieToken and a CookieProvider. And i stored a uuid (cookie value) in the database together with the related account.
But I think it is not good to call the ‘authenticate()’ method from the ‘AuthenticationProviderManager’ to authenticate at every request.
Thanks.
But how can it be authenticated without being redirected to the authentication action?
So if the user opens the website the next day it should be automatically authenticated.
I’ve solved this problem by first retrieving sessionSettings[‘inactivityTimeout’]
after login and implementing a JS timer which fires five seconds before timeout.
The timer function itself calls a controller in my project via ajax.
And this call retriggers the current session… This method prevents every
session timeout until active logoff (or closing the browser).
Additonal you don’t need cookies…