# AWX User Browser Times Out in Less than an Hour

**URL:** <https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 9, 2018, 7:41am UTC](https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991 "2018-07-09T07:41:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stan.varlamov](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@stan.varlamov](https://forum.ansible.com/u/stan.varlamov)\
**Post date:** [July 9, 2018, 7:41am UTC](https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991/1 "2018-07-09T07:41:29Z")

</div>

Running AWX 1.0.6.23 in an OpenShift pod.  
The documentation ([https://docs.ansible.com/ansible-tower/latest/html/administration/authentication\_timeout.html](https://docs.ansible.com/ansible-tower/latest/html/administration/authentication_timeout.html)) says that Settings → System → Idle Time Force Log Out controls the browser session expiration (the way I understood). My setting is default = 1209600, which is 336 hrs. However, if I leave the browser idle for some time - feels like under an hour - I come back to “Your session timed out due to inactivity. Please sign in.”  
What am I missing? Browsing through the code, I don’t see a clear setting that control the cookie / expiration, so looking for help here.

---

<div class="post-metadata">

**Author:** ![Christian\_Adams](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@Christian\_Adams](https://forum.ansible.com/u/Christian_Adams)\
**Post date:** [July 9, 2018, 2:03pm UTC](https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991/2 "2018-07-09T14:03:04Z")

</div>

Hello,

Currently, in 1.0.6.23, the register method for SESSION\_COOKIE\_AGE seems to be missing; so changing this in the UI, like you tried, is consequentially broken. We are working on fixing this.

Thanks,  
Christian

---

<div class="post-metadata">

**Author:** ![stan.varlamov](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@stan.varlamov](https://forum.ansible.com/u/stan.varlamov)\
**Post date:** [July 9, 2018, 2:33pm UTC](https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991/3 "2018-07-09T14:33:13Z")

</div>

Thank you, Christian. I assume, there is an alternative way changing the current low default somewhere in the code (but not through the configuration). I guess, considering that requires the process restart in the container and will go away on redeploys, will wait till the UI is fixed. Not a huge issue.

---

<div class="post-metadata">

**Author:** ![nlopez](https://avatars.discourse-cdn.com/v4/letter/n/85f322/32.png) [@nlopez](https://forum.ansible.com/u/nlopez)\
**Post date:** [August 22, 2018, 11:38pm UTC](https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991/4 "2018-08-22T23:38:48Z")

</div>

I’m still experiencing this issue with 1.0.6.41. I’ve checked the Postgres db, settings.py, and the value via the API, and they all agree on SESSION\_COOKIE\_AGE=1209601. Yet if I set my clock forward 30 minutes (or wait for 30 real-time minutes to pass), my session is expired. The expiry date for the sessionid cookie in browser is even properly 2 weeks in the future, so I’m at a loss for where this 30 minute timeout is coming from.

---

<div class="post-metadata">

**Author:** ![Christian\_Adams](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@Christian\_Adams](https://forum.ansible.com/u/Christian_Adams)\
**Post date:** [August 23, 2018, 2:11pm UTC](https://forum.ansible.com/t/awx-user-browser-times-out-in-less-than-an-hour/27991/5 "2018-08-23T14:11:40Z")

</div>

Hi nlopez,

Thanks for pointing this out. This has been fixed by this commit ([https://github.com/ansible/awx/commit/ae0793f3744f78a0826795ceea3bfe9625a61d70](https://github.com/ansible/awx/commit/ae0793f3744f78a0826795ceea3bfe9625a61d70)) and supported completely in the UI in a related commit. If you pull the latest awx code, you should be good to go.

Thanks,  
Christian
