# Disable automatic logout

**URL:** <https://discuss.codelibs.org/t/disable-automatic-logout/1414>\
**Category:** English:Fess\
**Created:** [December 22, 2020, 11:33am UTC](https://discuss.codelibs.org/t/disable-automatic-logout/1414 "2020-12-22T11:33:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AraGenji](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/aragenji/32/310_2.png) [@AraGenji](https://discuss.codelibs.org/u/AraGenji)\
**Post date:** [December 22, 2020, 11:33am UTC](https://discuss.codelibs.org/t/disable-automatic-logout/1414/1 "2020-12-22T11:33:06Z")

</div>

Is there a way to disable, that users get logged out automatically after a certain time?

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [December 23, 2020, 1:22pm UTC](https://discuss.codelibs.org/t/disable-automatic-logout/1414/2 "2020-12-23T13:22:06Z")

</div>

You can set a session timeout in web.xml:

```
    <session-timeout>30</session-timeout><!-- 30 min -->
```

---

<div class="post-metadata">

**Author:** ![AraGenji](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/aragenji/32/310_2.png) [@AraGenji](https://discuss.codelibs.org/u/AraGenji)\
**Post date:** [June 10, 2026, 7:03am UTC](https://discuss.codelibs.org/t/disable-automatic-logout/1414/3 "2026-06-10T07:03:00Z")

</div>

I am currently migrating my Fess installation from version 14.2 to 15.6. It appears that the `web.xml` setting no longer takes effect in the newer version. Has the configuration path or property changed in recent releases?

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [June 13, 2026, 7:05am UTC](https://discuss.codelibs.org/t/disable-automatic-logout/1414/4 "2026-06-13T07:05:06Z")

</div>

The auto-logout is controlled by the HTTP session timeout, which defaults to 30 minutes.  
To change it, edit the deployed app/WEB-INF/web.xml and add a (in minutes) inside :

```auto
<session-config>
  <session-timeout>120</session-timeout> <!-- 120 minutes; 0 or negative = never expire -->
</session-config>

```

Then restart Fess. Set it to 0 (or a negative value) to disable automatic logout entirely.
