Session expired message for Confluence

Deleted user November 10, 2014

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

2 votes
Answer accepted
Brian
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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 (https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity) to call a method called isRequestedSessionIdValid, which tells you whether the current session ID is valid or not. 

Hope this helps!

Deleted user November 11, 2014

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?

0 votes
Steve Gerstner [bridgingIT]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2014

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). -> https://confluence.atlassian.com/display/DOC/Configuring+Workbox+Notifications

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? -> http://www.jguru.com/faq/view.jsp?EID=415341

 

Regards

Steve

Deleted user November 10, 2014

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!

Steve Gerstner [bridgingIT]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2014

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 http://jira.atlassian.com Regards Steve

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events