# Implementing SessionTimeOut

**URL:** <https://forum.xojo.com/t/implementing-sessiontimeout/70379>\
**Category:** Web\
**Created:** [May 24, 2022, 2:18am UTC](https://forum.xojo.com/t/implementing-sessiontimeout/70379 "2022-05-24T02:18:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Seyfarth](https://forum.xojo.com/letter_avatar_proxy/v4/letter/t/d26b3c/32.png) [@Tim\_Seyfarth](https://forum.xojo.com/u/Tim_Seyfarth)\
**Post date:** [May 24, 2022, 2:18am UTC](https://forum.xojo.com/t/implementing-sessiontimeout/70379/1 "2022-05-24T02:18:26Z")

</div>

Hello all.

In Web1 this code worked  
Self.Timeout = 0

Now, working with Web2 I cannot seem to get the replacement SessionTimeOut to compile.

I’ve tried  
Self.SessionTimeOut = 0  
and  
WebApplication.SessionTimeOut = 0

Both are in the Session.Opening Event but neither compile without error. What am I doing wrong??

Thanks  
Tim

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [May 24, 2022, 2:25am UTC](https://forum.xojo.com/t/implementing-sessiontimeout/70379/2 "2022-05-24T02:25:04Z")

</div>

The documentation can help you:  
[https://documentation.xojo.com/api/web/websession.html#websession](https://documentation.xojo.com/api/web/websession.html#websession)  
you can find that the Timeout now is UserTimeout

Try

```auto
Self.UserTimeout = 0

```

I use the autocomplete to also find if something on the list could be what I’m looking for.

---

<div class="post-metadata">

**Author:** ![Tim\_Seyfarth](https://forum.xojo.com/letter_avatar_proxy/v4/letter/t/d26b3c/32.png) [@Tim\_Seyfarth](https://forum.xojo.com/u/Tim_Seyfarth)\
**Post date:** [May 24, 2022, 2:27am UTC](https://forum.xojo.com/t/implementing-sessiontimeout/70379/3 "2022-05-24T02:27:08Z")

</div>

Funny…

I used the docs and got the following. Says nothing about UserTimeout!  
Thanks for point this out to me AlbertoD!  
Tim

_SessionTimeout_\* As [Integer](https://documentation.xojo.com/api/data_types/integer.html)

The number of seconds after a browser disconnects that the session will actually be removed from memory. The default is 180.

This property is read-only.

This is the period of time that a Session stays around to avoid the overhead of starting up a new Session, should the user come “right back”. Use this property to adjust this time up or down based on your system and user requirements. It should not be set too low. Since it defines the amount of time that passes since the last communication from the browser to when the Session is actually closed, setting it too low could disconnect active users.

In most cases you should not need to change this property.

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [May 24, 2022, 2:32am UTC](https://forum.xojo.com/t/implementing-sessiontimeout/70379/4 "2022-05-24T02:32:01Z")

</div>

You are looking on a different page, that information is for [WebApplication](https://documentation.xojo.com/api/web/webapplication.html#webapplication) (App) and not WebSession.

---

<div class="post-metadata">

**Author:** ![Tim\_Seyfarth](https://forum.xojo.com/letter_avatar_proxy/v4/letter/t/d26b3c/32.png) [@Tim\_Seyfarth](https://forum.xojo.com/u/Tim_Seyfarth)\
**Post date:** [May 24, 2022, 6:36pm UTC](https://forum.xojo.com/t/implementing-sessiontimeout/70379/5 "2022-05-24T18:36:24Z")

</div>

I searched for it and that was the page that came up…  
Thanks again for your responses!  
Tim
