I want to do the below if the session expires: - reset session before it ends if user is not logged so he continue normally. - redirect to login page if user is logged in.
I managed to do the second but I need to do the first.
I am working with jsf.
I want to do the below if the session expires: - reset session before it ends if user is not logged so he continue normally. - redirect to login page if user is logged in.
I managed to do the second but I need to do the first.
I am working with jsf.
By Simple search, you can get the following answers
Invoke method just before session expires
How to call a method before the session object is destroyed?