How to edit session expire by user?

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.

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.

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.

I will try it in the futher because i have other project must doing before this project

Thank a lot in answers