# How to limit length of webclient session?

**URL:** <https://forum.servoy.com/t/how-to-limit-length-of-webclient-session/17527>\
**Category:** Classic Servoy\
**Created:** [October 9, 2013, 6:18pm UTC](https://forum.servoy.com/t/how-to-limit-length-of-webclient-session/17527 "2013-10-09T18:18:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Westy](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Westy](https://forum.servoy.com/u/Westy)\
**Post date:** [October 9, 2013, 6:18pm UTC](https://forum.servoy.com/t/how-to-limit-length-of-webclient-session/17527/1 "2013-10-09T18:18:54Z")

</div>

How can I limit the length of a webclient session to a maximum of 60 minutes of no activity?

Dean  
Servoy 6.0.9

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [October 9, 2013, 9:51pm UTC](https://forum.servoy.com/t/how-to-limit-length-of-webclient-session/17527/2 "2013-10-09T21:51:08Z")

</div>

…/server/conf/web.xml:

```auto
    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>

```

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [October 10, 2013, 12:51pm UTC](https://forum.servoy.com/t/how-to-limit-length-of-webclient-session/17527/3 "2013-10-10T12:51:33Z")

</div>

That will only work for clients, that have closed the tab in browser, or the whole browser window.  
If you want clients to automatically logout after 30 or 60 minutes of idle time, you need the UserManager plugin for that.

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [October 10, 2013, 1:36pm UTC](https://forum.servoy.com/t/how-to-limit-length-of-webclient-session/17527/4 "2013-10-10T13:36:41Z")

</div>

Woops, true that. What Harjo said ^^
