How does Jboss Timeout work?

How does jboss timeout work? How does a web application know when to redirect to a login page?

Just to clarify! -I know how to set the timeout on jboss. My question is, how does Jboss know that the session has expired, and when this happens, how to configure it to send a request to the login page after a timeout has occurred?

+3
source share
2 answers

You can set a timeout for all deployable devices, such as .war files in web.xml

<session-config>
  <session-timeout>30</session-timeout>
</session-config>
+1
source

HttpSessionJBoss timeout can be set at three different levels:

  • # 1 - -:

Web Deployer: web.xml        

<session-config>
   <session-timeout>30</session-timeout>
</session-config>
  • # 2 - HttpSession -:

, , WEB-INF/web.xml. DTD :

<!--
The session-config element defines the session parameters for
this web application.

Used in: web-app
-->
<!ELEMENT session-config (session-timeout?)>

https://developer.jboss.org/wiki/HttpSessionTimeout

session-timeout - , -. - . - 0 , . : session-config

<!ELEMENT session-timeout (#PCDATA)>

  • # 3 To override the value of a global and web application for a single client,

call

HttpSession.setMaxInactiveInterval(int seconds)
0
source

Source: https://habr.com/ru/post/1730352/


All Articles