0

Servlet-API: Individuelles Session-Timeout einstellen

Posted by admin on September 17, 2010 in Java |

Das Session-Timeout eine Java-Servlet-Containers wird üblicherweise in der web.xml konfiguriert:

<session-config>
  <session-timeout>60</session-timeout>
</session-config>

Will man das programmatisch machen, kann man dies über API der HttpSession machen.

getMaxInactiveInterval – liefert die Session-Timeout-Zeit in Sekunden; Der korrespondierende Setter setzt entsprechend das Timeout.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2010-2024 Analysisfreaks.de All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.4, from BuyNowShop.com.

Developed by Hardik