Results 1 to 3 of 3

Thread: HOWTO: Multiple Firefox sessions

  1. #1
    Join Date
    Mar 2009
    Beans
    14
    Distro
    Ubuntu 9.10 Karmic Koala

    Post HOWTO: Multiple Firefox sessions

    This HOWTO may be useful for people who want to:

    • Browse the same website in different Firefox windows, each logged in as a different user
    • Open a private browsing session while keeping other Firefox windows open
    • Work with Google services while logged in with multiple Google accounts

    My personal motivation for writing this HOWTO:

    When working with GMail, Google Docs etcetera, I found it very annoying that new Firefox windows I opened would open with the Google start page (which I've set as my default) and logged in with my Google account. When I would sign off in any window showing a Google page, all other windows showing Google pages would sign off or close as well.
    Call me paranoid, but I simply don't like Google watching over my shoulder when searching for stuff or clicking links when I happen to be working with my GMail or Google documents in some other browser window.

    After searching around for an explanation for this, I've found out the following:

    • When you open a new Firefox window, either by choosing 'File'/'New Window' or clicking on a Firefox icon, this doesn't actually start a new Firefox session but re-uses the current one instead.
    • Most importantly, this means that any website logins that were active before opening the new window are still active in the new window.
    • Logging out of a website in the new window will most likely log you out of that site in other open windows, and in some cases will cause very strange behaviour if the site in question has certain design flaws.

    This is the way I've managed to fix this:

    First, create a new Firefox profile by starting Firefox's Profile Manager. This profile will be used for browsing a website for which you need to log in (GMail in this example).

    1. At the desktop, press [Alt]-[F2] (hold down the Alt key while pressing the F2 key). This will open a dialog titled "Run Application"
    2. In the text box, enter:
      Code:
      firefox -no-remote -P
      . This will start Firefox's Profile Manager
    3. In the window which pops up, click on "Create Profile"
    4. The Create Profile Wizard opens
    5. Click "Next" to continue
    6. In the text box under "Enter Profile Name", enter a meaningful name for the profile. Don't use the name 'default'! In my case, I entered my GMail email address.
    7. Click "Finish" to create the new profile
    8. Click "Exit" to close the Profile Manager

    Voilà, the new profile is now created. To use it, create a special Firefox launcher icon which can be placed on the desktop or in a panel.
    To do this:

    1. Open the Applications menu, choose "Internet" submenu
    2. Right-click on the "Firefox webbrowser" menu entry
    3. In the pop-up menu which opens now, click the option where you wish the new launcher to be placed, either on the panel or on the desktop.

    Now the new launcher must be set up to use the Firefox profile created earlier. To do this:

    1. Right-click on the newly added Firefox icon
    2. Select "Properties"
    3. In the window which opens, click in the "Name" text box
    4. Change the text there to something which is easy to remember. I simply added my GMail email address at the end.
    5. Next, click either the "Command line" (if it is a panel launcher) or "Command" (if it is a desktop launcher) text box.
    6. Make the text in the box look like this:
      Code:
      firefox -no-remote -P "<your profile name>" %u
      . (replace <your-profile-name> with the name you chose for the Firefox profile you created. Don't remove the quotes!)
    7. [IMPORTANT] I needed to click inside one of the other text boxes (don't change anything!) to make the change 'stick'. This could be a bug of some kind.
    8. Finally, click "Close"

    Finished! Now you have a new Firefox launcher to start a new session.
    Note that the new session is completely 'pristine': you will need to log in to the website you wish to use, set your home page, install all your favorite plugins, add bookmarks, etc.
    You can repeat the entire procedure and create as many new profiles and launchers as you like, one for each session type.

    More information on Firefox command-line options can be found via this link.

    I hope that this HOWTO is useful, please add any comments or questions you may have, and I will try to answer them as best as I can.

  2. #2
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: HOWTO: Multiple Firefox sessions

    thanks! i have a separate account for my bank accounts, and it always annoyed me how i couldn't access it while browsing. it should save me a lot of hassle.

  3. #3
    Join Date
    Jun 2010
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Multiple Firefox sessions

    Bumping this old thread to ask - how can I make a launcher for this second firefox session/profile in Unity? So I don't have to use command line to launch it every time?

    And, once I do this, how can I differentiate the two lauchers? (Used to do this on a Mac with two different icons for the FF aliases in the dock) Can't figure this out... thanks!

    (I feel the same way about being logged in to google, having to accept google cookies, etc. Paranoid? Maybe. Skeptical? Definitely.)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •