How can Hipchat maintain credentials after a service restart?

While trying to implement some form of session control on Hipchat, it was found that user logins persist after a service stop/start with over an hour between stoppage and starting again.

As in, I am logged into Hipchat, I stop the service via command line, wait an hour to start it up again, then when I refresh the page, Hipchat loads without asking me to login like I was expecting(hoping) it would.

1 answer

0 votes
Ann Worley Atlassian Team Jun 15, 2017

I have been pondering your question and bouncing it off HipChat support. We are not clear whether you are shutting down the HipChat server service via command line or if you are closing your client for an hour.

Closing the app on your local machine doesn't log you out, so if you are stopping the client service via command line it is expected that the login will persist. The best way to end the session is to log out.

I actually have found a way to log out users at time of day.

Feel free to pass it around. This is all added to the crontab in the hipchat server command line.

service hipchat stop
redis-cli keys websession* | xargs redis-cli del
redis-cli keys OauthSession* | xargs redis-cli del
redis-cli keys moble* | xargs redis-cli del
service hipchat start

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

26,940 views 0 7
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