thanarat
(thanarat limwongs)
December 20, 2012, 2:33am
1
Hi everyone. i am new in vaadin developer.
Vaadin can edit session expire by user? Not edit on file web.xml.
My customer want to edit session expire on my software of vaadin.
anyone have example code. How to get default value of session expire and how to save new value for session expire.
Thank you so much.
Sorry in my language. English language is bad.
Johan
(Johan Ånäs)
December 20, 2012, 7:04am
2
Hi
You could override the default session timeout by adding session-timeout to your web.xml file
120
If the timeout expires, the Application.close() is called. This method can be overridden.
If you want to ensure that the session does not expire meanwhile a user does some non-interactive stuff, you could use the
the Refresher
or
Session Guard
.
BR,
Johan
thanarat
(thanarat limwongs)
December 20, 2012, 7:58am
3
Hi
You could override the default session timeout by adding session-timeout to your web.xml file
120
If the timeout expires, the Application.close() is called. This method can be overridden.
If you want to ensure that the session does not expire meanwhile a user does some non-interactive stuff, you could use the
the Refresher
or
Session Guard
.
BR,
Johan
No, it not this type.I mean i create window form for edit value of session timeout.
Charles
(Charles Anthony)
December 20, 2012, 8:24am
4
Hi,
You can programatically change a session’s timeout-out value with
HttpSession#setMaxInavtiveInterval
You can access the HttpSession in a Vaadin application by implementing
HttpServletRequestListener
on your Vaadin application, and then retrieving it via the
request#getSession
method.
HTH,
Cheers,
Charles.
thanarat
(thanarat limwongs)
December 27, 2012, 10:55am
5
I will try it in the futher because i have other project must doing before this project
Thank a lot in answers