# How to configure longer session timeouts

**URL:** <https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056>\
**Category:** Sonatype Nexus Repository\
**Created:** [August 3, 2021, 7:54am UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056 "2021-08-03T07:54:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![svogt](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/svogt/32/1969_2.png) [@svogt](https://community.sonatype.com/u/svogt)\
**Post date:** [August 3, 2021, 7:54am UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/1 "2021-08-03T07:54:08Z")

</div>

Hi all,

I recently set up a Nexus Repository Manager 3 - OSS and I wonder how I can extend the session timeout. I found the `UI: Settings` capability and set the “Session timeout” setting to a week (10080 minutes) but still I’m logged out if I come back to the UI after a while (at least each morning).

I suspect the session is kept alive only if the Web UI is open (but I usually use the rest/service plain view to browse the repositories, which then just returns some empty page…)

Am I missing some setting?

Greetings  
.sascha

---

<div class="post-metadata">

**Author:** ![mfrost](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mfrost/32/1701_2.png) [@mfrost](https://community.sonatype.com/u/mfrost)\
**Post date:** [August 3, 2021, 1:19pm UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/2 "2021-08-03T13:19:09Z")

</div>

Hi @svogt and welcome to the Sonatype Community!

I think this past thread may answer your question: [How can I stay signed in?](http://community.sonatype.com/t/how-can-i-stay-signed-in/4541)

Thanks,

Maura

---

<div class="post-metadata">

**Author:** ![svogt](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/svogt/32/1969_2.png) [@svogt](https://community.sonatype.com/u/svogt)\
**Post date:** [August 3, 2021, 1:23pm UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/3 "2021-08-03T13:23:55Z")

</div>

Well only in part. In my case I never close the browser and it still kills the session…

Maybe to clarify further, I’m logging myself in, browse to a particular Maven repo, click on the HTML View button and then idleing here: [host]/service/rest/repository/browse/[repo]/x/y/z

Still after a while I hit F5 or click on another directory and see an empty page. Going back to [host] I can see that I’m logged out again. So seems there is a session cookie timeout not tied to the UI capability config, or my config is not used… How to verify that?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [August 3, 2021, 1:44pm UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/4 "2021-08-03T13:44:17Z")

</div>

Likely your browser decides the session is over.

---

<div class="post-metadata">

**Author:** ![svogt](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/svogt/32/1969_2.png) [@svogt](https://community.sonatype.com/u/svogt)\
**Post date:** [August 3, 2021, 2:15pm UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/5 "2021-08-03T14:15:38Z")

</div>

Thanks - I’ve now created a screenshot of my session cookie value and will check tomorrow what happens.

---

<div class="post-metadata">

**Author:** ![svogt](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/svogt/32/1969_2.png) [@svogt](https://community.sonatype.com/u/svogt)\
**Post date:** [August 4, 2021, 5:23am UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/6 "2021-08-04T05:23:28Z")

</div>

Unfortunately that’s not it.  
Checked via Chrome Developer Tools and the NXSESSIONID cookie is still present and has the same value as yesterday, but I’m still logged out and the HTML view (`/service/rest/repository/browse/`) throws 404 errors whatever I enter. Moving back to the normal UI I can see I’m logged out while even then NXSESSIONID is the same value as yesterday where the login was created.

---

<div class="post-metadata">

**Author:** ![svogt](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/svogt/32/1969_2.png) [@svogt](https://community.sonatype.com/u/svogt)\
**Post date:** [August 6, 2021, 2:18pm UTC](https://community.sonatype.com/t/how-to-configure-longer-session-timeouts/7056/7 "2021-08-06T14:18:25Z")

</div>

Opened [NEXUS-28598](https://issues.sonatype.org/browse/NEXUS-28598) - let’s see if this is confirmed.
