Prevent automatic login


When a user logs in to Jira, they have the option of making Jira remember their login information by selecting the 'Remember my login' checkbox before they click the 'Log In' button. When they do that, a 'Remember my login' token is stored by the Jira server and a cookie containing this token is set in the user's browser. 

 A user who revisits Jira from the same computer and browser, will automatically be logged in if Jira detects that one of the user's 'Remember my login' tokens has a matching token contained in one of the browser's cookies. If the user logs out of Jira, the 'Remember my login' token is cleared from the Jira server.

To maximize and maintain the security of your Jira instance, Jira provides features for:

  • Disabling 'remember my login' functionality for the Jira instance.
  • Clearing 'Remember my login' tokens for individual user accounts.
  • Clearing all 'Remember my login' tokens stored by your Jira instance.

Manage automatic logins:

  • To maximize security by requiring a user to enter all of their credentials each login.
  • If users have been accessing your Jira application in a public environment.
  • If users aren't in the habit of formally logging out of Jira.

Before you begin

You must be logged in as a user with the Jira Administrators global permission to complete any of the following procedures.

Clear a 'remember my login' token for a specific user

Jira administrators can clear all 'Remember my login' tokens associated with a user's account through the Jira administration console.

To clear a login token for a user:
  1. Choose Administration () > User Management.
  2. Find the user in the list and click the Username or Email Address of the user whose 'Remember my login' tokens you wish to remove. Details about that user and their login information is displayed.
  3. Click the 'Remember My Login' link to display that user's Remember My Login page.
  4. Click the 'Clear All' button to remove all 'Remember my login' tokens associated with this user account from the Jira server.

Clear all 'remember my login' tokens for the entire Jira instance

Jira administrators can also clear all 'Remember my login' tokens from their Jira instance with a few simple clicks. 

To clear a login token for the instance:
  1. Choose Administration () > System
  2. In the left panel, select Security > Remember My Login to open the Remember My Login for All Users page.
  3. Click the 'Clear All' button to remove all 'Remember my login' tokens from the Jira server.

Disable 'remember my login on this computer' option for your Jira instance

If you never want Jira to remember login tokens, you can choose to disable 'remember my login' tokens for the entire Jira instance.

To disable this feature:

 Option 1 (recommended)

The checkbox for this option can be disabled by setting the jira.option.allowcookies property to false in your file. You will need to restart Jira in order for this change to take effect.

Option 2
Edit the ./atlassian-jira/includes/loginform.jsp file.

Last modified on Jul 1, 2021

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.