-2

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.

Reem
  • 1
  • 5
  • If the user is not logged in there is no session to expire: and taking a logged-in user to a login page is senseless. Do you mean 'online'? – user207421 Jun 14 '16 at 08:33
  • The question its current form doesn't make sense. The duplicate answers your http://xyproblem.info. – BalusC Jun 14 '16 at 08:38

1 Answers1

-1

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?

Community
  • 1
  • 1
Shady Hussein
  • 513
  • 8
  • 24
  • 1
    Next time, when you find duplicates, post a comment and vote for close instead of posting an "answer". – BalusC Jun 14 '16 at 08:37