Session expired message for Confluence

Is there a way to let the user know that his Confluence session has expired due to session timeout?

Our users claim that they are not notified about not beeing logged in anymore after session timeout.

The only noticable change is the 'Log In' on the right top in the menu and that the search results only

retrieve the public results.

2 answers

1 accepted

This widget could not be displayed.
Brian Tom Atlassian Team Nov 11, 2014

Hey there Harald, by default Confluence will redirect users to the login screen when their session times out. However, it sounds like your instance may be accessible anonymously. In that scenario, the redirection to the login screen doesn't occur, and instead users will see the "Login" link at the top right, and only be able to search public content, which you've reported. 

In this case, you could do something like edit the main layout (Confluence Admin > Layouts > Main Layout) by adding a banner that would only display when the session ID becomes invalid. For that, you could use the $req request object ( to call a method called isRequestedSessionIdValid, which tells you whether the current session ID is valid or not. 

Hope this helps!

Thank you Brian! I'll check that out. May Atlassian could think of adding a configuration property to add such a message. So the customer does not have to do programming?

This widget could not be displayed.

Which confluence version do you use?

I'm not sure if this is possible since confluence 5 as you always have the workbox requests (as long they are not disabled). ->

If your session is invalidated confluence does not know that you had a previous session, so it might be challanging to implement something to inform the user... E.g. you need to differnetiate if a user closed the window or the session timed out while the browser was open.

If the workbox is not availlable due to an older confluence version or needs to be disabled, maybe increasing the session-timeout can help? ->




Thank's for the anser Steve, but it's not what we expect. (Were using 5.4, workbox is on!). We expect that e.g. I a user is logged out due to session timeout and put's in some text into the search box that a warning comes out theat the session has expired like it's done in online banking or other web applications. We do not want to implement it, but think this is a bit of useability Confluence should have!

If your workbox is on then your session can only time out when the refresh interval of the workbox is longer then the session timeout. Usually the session timeout is round about 30 min I think. The workbox should refresh every 5 min. So the workbox will keep your session alive and you can't drop in a session timeout while your browser/tab is open. Maybe you can check the two values. Besides, If you use the default login mechanism of confluence, there should be a checkbox to stay logged in after a session timeout ("Stay signed in"-checkbox) If all of this is not enough, you may need to open a feature request at Regards Steve

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

854 views 8 13
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