Increasing session timeout

Hi there,

I'd like to update your plugin to increase the session timeout, our users are complaining bitterly about this sad

Looking at your code, if I increase the expireAfterWrite value, should that do the trick?

public class OpenIdAuthenticationHandler implements AuthenticationHandler {

final Cache<String, String> cache = CacheBuilder.newBuilder()


            .expireAfterWrite(2, TimeUnit.HOURS)

            .build(new CacheLoader<String, String>() {


                public String load(final String key) throws Exception {

                    return key;




I understand from the terms of the license that we are entitled to fix issues and build our own version to install?



7 answers

So I assume that the problem is that JIRA session timeouts and they have to re-authenticate again? Is that the problem you want to solve?

In this case changing this cache will not solve it as this is used only when you are authenticating.

I plan to address session timeouts soon if that's what you're asking about.

Hi there,

yes session timeouts is the problem, we have about 500 users complaining they have to keep re-authenticating several times a day.

It would help if we were able to advise them of an ETA for a fix, when you say soon, do you have a rough idea of when?

Many thanks



Sorry I cannot give you any specific date as I don't know how long it will take me to solve it. But I guess it will be a week or two.

Hi @Pawel Niewiadomski - any update on this?

Right now we have 500 users complaining quite strongly about repeatedly being logged out of JIRA all day long.


Unfortunately I wasn't able to fix it so far. I spent a lot of time reading JIRA and Tomcat sources and don't understand what's going on. In my tests session-timeout from web.xml was correctly influencing the session.

Hi @Pawel Niewiadomski - any further update on this? It's still a significant problem for our users.

Sorry, I don't have any. Still wasn't able to figure it out.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,717 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you