How To

How do I clear cookies in AM/OpenAM (All versions) in different browsers?

Last updated Jul 9, 2018

The purpose of this article is to provide guidance on how to clear cookies in AM/OpenAM for end users and system administrators.


1 reader recommends this article

Overview

Cookies are used for the following purposes in AM/OpenAM if you use CTS-based sessions:

  • Internal authentication session - default name AMSESSION.
  • Authentication token cookie (post authentication success) - default name iPlanetDirectoryPro. In CDSSO environments, there may be multiple entries with differing domains.
  • Load balancer cookie - default name amlbcookie.

Once AM/OpenAM has authenticated successfully, the AMSESSION is removed/invalidated and the iPlanetDirectoryPro cookie is created. The amlbcookie is created on first access to AM/OpenAM. Depending on your policy agent version, the amlbcookie can also get created during CDSSO. See OPENAM-2396 (Agents should set 'amlbcookie' when running in CDSSO mode) for further information.

See FAQ: Cookies in AM/OpenAM for further information on cookies in AM/OpenAM.

Why should I clear cookies in AM/OpenAM?

You may need to clear your cookies for the following reasons:

  • To log in as a different user.
  • To log in to a different node in the cluster.
  • To refresh the session cookie if it has become stale and the entry no longer maps to an existing session.
  • To prove that it is a clean login.
Note

Clearing other cached elements in addition to cookies is useful if you are customizing the interface and want to reload UI elements. Additionally, clearing cookies and other cached data as described in this article may impact other web pages and applications using the browser, since you are clearing data relating to all sites.

Deleting cookies on a one-off basis

Note

The instructions given here are subject to change since these browser interfaces change frequently; however, these instructions should be sufficient to point you in the right direction even if the interface has changed and links to the browsers' documentation are given in the See Also section for the latest information.

Chrome™ browser

  1. Open the Chrome browser.
  2. Click More on your browser toolbar (right-hand side) and select More Tools > Clear Browsing Data...
  3. Select the beginning of time in the Clear the following items from drop-down list.
  4. Ensure at least the following check boxes are selected:
    • Cookies and other site data
    • Passwords
    • Autofill form data
  5. Click Clear browsing data.

Firefox® browser

  1. Open the Firefox browser.
  2. Click the menu button  on your browser toolbar (right-hand side) and select History > Clear Recent History.
  3. Select Everything in the Time range to clear drop-down list.
  4. Ensure at least the following check boxes are selected:
    • Form & Search History
    • Cookies
    • Active Logins
  5. Click Clear Now.

Microsoft Edge browser

  1. Open the Edge browser.
  2. Select Hub  > History
  3. Select Clear all history.
  4. Ensure at least the following check boxes are selected:
    • Cookies and saved website data
    • Form data
    • Passwords
  5. Click Clear.

Internet Explorer®

  1. Open the Internet Explorer browser.
  2. Select Internet Options from the Tools menu.
  3. Stay on the General tab and click the Delete button in the Browsing history section. 
  4. Ensure at least the Cookies check box is selected.
  5. Click Delete.

Safari® browser

  1. Open the Safari browser.
  2. Select Clear History... from the History menu.
  3. Select all history from the Clear drop-down list.
  4. Click Clear History.

Deleting cookies each time you exit or quit the browser

Note

The instructions given here are subject to change since these browser interfaces change frequently; however, these instructions should be sufficient to point you in the right direction even if the interface has changed and links to the browsers' documentation are given in the See Also section for the latest information.

Chrome browser

  1. Open the Chrome browser.
  2. Click More on your browser toolbar (right-hand side) and select Settings.
  3. Scroll down to the On Start-up section, select either Open the New Tab Page or Open a specific page or set of pages.
  4. Click Advanced to reveal Privacy and security options.
  5. Select Content Settings > Cookies > Keep local data only until you quit your browser.

Firefox browser

  1. Open the Firefox browser.
  2. Click the menu button  on your browser toolbar (right-hand side) and select Preferences > Privacy.
  3. Choose one of the following options from the drop-down list under History:
    • Never remember history OR
    • Use custom settings for history. If you choose this option, you should:
      • Clear the Remember search and form history check box.
      • Change the Keep until option to: I close Firefox or select the Clear history when Firefox closes check box and specify which types of data should be cleared by clicking Settings. You should ensure at least the following check boxes are selected: Active Logins, Form & Search History and Cookies.
  4. Restart Firefox when prompted for the settings to take effect.

Microsoft Edge browser

  1. Open the Edge browser.
  2. Select Hub  > History
  3. Select Clear all history.
  4. Ensure at least the following check boxes are selected:
    • Cookies and saved website data
    • Form data
    • Passwords
  5. Switch the Always clear this when I close the browser option to On.

Internet Explorer®

  1. Open the Internet Explorer browser.
  2. Select Internet Options from the Tools menu.
  3. Stay on the General tab and select the Delete browsing history on exit check box in the Browsing history section. 
  4.  Click Apply.

Safari browser

  1. Open the Safari browser.
  2. Select Preferences from the Safari menu.
  3. Stay on the General tab and check the following settings:
    • Safari opens with - this should be set to A new window.
    • Remove history items - set this to After one day.
Note

You must remember that closing a Mac OS application using the red X does not actually quit the application and you will still see it running in the Dock. To ensure cookies are cleared automatically when the browser is quit, you must quit the browser using either the Quit option on the application menu or right-click on the Dock icon and select Quit. 

See Also

FAQ: Cookies in AM/OpenAM

How do I change the session cookie name for AM/OpenAM and Policy Agents (All versions)?

Authentication and Single Sign-On Guide › Implementing Single Sign-On › About HTTP Cookies

Installation Guide › Securing Installations 

Clear, enable, and manage cookies in Chrome

Firefox - Delete browsing, search and download history on Firefox

View and delete browser history in Microsoft Edge

How to delete cookie files in Internet Explorer

Safari for Mac: Clear your Safari browsing history

Safari for Mac: Manage cookies and website data using Safari

Related Training

N/A

Related Issue Tracker IDs

OPENAM-2396 (Agents should set 'amlbcookie' when running in CDSSO mode)



Copyright and TrademarksCopyright © 2018 ForgeRock, all rights reserved.
Loading...