0

The requirement is to allow user to login after sitting on the login page for a long time and even after the session times out without a page refresh. Is there a way to create a new DOM whenever session times out?

user679526
  • 845
  • 4
  • 16
  • 39

1 Answers1

2

There is no such way. Just set the JSF state saving method to client. This way the view will never expire.

<context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
</context-param>

This will only trade memory usage for network bandwidth (e.g. lower memory usage and more network bandwidth usage). With partial state saving enabled, the network bandwidth use increase should be relatively minor and is easily earned back with minifying, compression, etc.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555