Hi, can anybody tell me how can I prevent situation when user writes a long review, go for a walk, come back to submit form and he lost all the text because of session timeout? I would be gratefull for any help!!
I mean, is there solution like "keep me logged in" so if there is session timeout, application search for cookies with login data and the session is restored with actual view. Can it be done in JSF?
Yes, but it requires a lot of work on the application's part. It's easier just to put a refresh meta-tag on the web page or to extend the timeout limit in web.xml.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Ok, I can implement auto-login based on cookies, but I'm not sure how will the app react when the session expires. Probably some exception will be thrown and I don't know If I will be able to restore view and a text of a user.