Frequent logouts and Session swap / hijack in JIRA

This problem has been resolved, adding it here if others encounter it ...

Poblem: Frequent logouts and sessions getting swapped (or hijacked) for some logged in users. When session swap / hijack happens you would see someone else's name as logged in user on top right and if you do not notice and create an issue or comment, it will go as the other user. Conversely, you may find an issue or comment created by your name but you didn't do it.

Environment: JIRA 6.0.x with Apache 2.2.15 as reverse proxy on CentOS 6.2

1 answer

1 accepted

4 votes
Accepted answer
We use Apache as reverse proxy (mod_proxy) for JIRA server as it handles ssl and talks to JIRA at port 8080 via ProxyPass. We were also using mod_cache's disk based caching for all urls. Use of mod_cache is known to create problem of session mix ups when Apache is used as reverse proxy with JIRA (see links below). Since Apache had been running possibly as long as the uptime of JIRA server which is 101 days, its cache got into a bad state as seen by errors in ssl_error_log file mentioned below, creating a situation where it started to either drop or mix up JSESSIONID cookie sent by JIRA to client. This results in logout of client or worse session mixups.

Error in ssl_error_log
[Thu Jun 06 23:02:05 2013] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data
Links pointing to this problem

Restart of Apache itself fixed the issue, but for future following lines have been commented in /etc/httpd/conf/httpd.conf, which is also recommended configuration.

#<IfModule mod_disk_cache.c>
# CacheEnable disk /
# CacheRoot "/var/cache/mod_proxy"

Won't this affect performance on the UI? We are having this issue (3 hi-jacks in the past 2 weeks) and the security risk it presents is a big deal at my company. But as the admin, I am very concerned about doing anything that may slow the app down. We are already having rendering issues frequently (probably because we are all on the latest dev Chrome).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,723 views 17 21
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