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.