0

how to detect and redirect page when the timeout expires in a JSF application without navigation. My application contains one xhtml page only. and how to adjust the timeout?

madth3
  • 7,275
  • 12
  • 50
  • 74
Karim Oukara
  • 2,638
  • 8
  • 38
  • 51
  • 1
    This may be what you're looking for: http://stackoverflow.com/questions/3201991/auto-log-off-once-the-session-expires – BalusC Nov 22 '12 at 15:48
  • @BalusC there is a way to do this with spring configuration? – Karim Oukara Nov 22 '12 at 15:59
  • @BalusC the js link is not valid – Karim Oukara Nov 22 '12 at 16:13
  • 2
    I don't do Spring. But in theory, it is in any way irrelevant here if you're using Spring or not. This is a pure client side solution with help of an extremely simple servlet which should run as good in a Spring flavored webapp. – BalusC Nov 22 '12 at 16:28
  • 1
    @berber5 the link to jquery in the BalusC worked for me. Use the full url (including the` http://` at the beginning). Also, your question doesn't need to be solved by a server framework but with a simple Servlet. – Luiggi Mendoza Nov 23 '12 at 07:37
  • thank you my friends, its work but without using servlet. I just do this `window.location = 'http://localhost:8080/MyApplication/j_spring_security_logout';` @BalusC @Luiggi Mendoza – Karim Oukara Nov 23 '12 at 08:43
  • @BalusC the code dosent work in chrome !!!! – Karim Oukara Nov 23 '12 at 10:14
  • Apparently you modified it too much without actually understanding how it works. It works fine for me in all browsers. – BalusC Nov 23 '12 at 11:12

0 Answers0