19

I have a need to use Firefox with multiple independent sessions, due to some websites with problematic path-dependent navigation. Firefox's "Private Browsing" option seems to allow multiple windows and tabs, but they are all tied to the same session. In the current configuration, there seems to be exactly one session for all of the non-private windows and tabs, and exactly one other session for all of the private windows and tabs. This is a problem because sometimes I need a variety of windows each with a different session, and don't want to be limited to only two of them.

As an example, some airline reservation websites make it very difficult to independently browse and navigate different flight-booking searches in different windows, because the site uses cookies in a way that causes the navigation in one window to corrupt that in another window.

Are there any options in Firefox or add-ons to support this?

user553702
  • 1,451

6 Answers6

3

On Linux:

firefox --profile $(mktemp -d) --private-window

Opens a new private browsing window with a throw-away profile. It won't interact with existing private browsing sessions.

Note: On most Linux systems, it will take many days for the temporary folder to be deleted, unless the computer is restarted. If this is a security issue for you then create a directory yourself to pass to --profile and delete it afterwards.

I don't know what the equivalent of mktemp is in other operating systems.

crantok
  • 131
  • 3
3

There is an add-on called MultiFox that does this.

OR, use the -no-remote command line switch to open another Firefox instance with its own profile if you want to run different Firefox versions simultaneously; you'll have to combine it with the -P switch specifying the alternate profile.

Debra
  • 4,326
  • 1
  • 19
  • 24
2

As of version 53 (or earlier) Firefox Test Pilot now has support for Containers, which is basically what you are asking for (a native version of MultiFox).

Unfortunately, as best I can tell it only works for normal browsing, so your private sessions are still all lumped together.

1

I have not actually tried doing this yet, but possibly try using Profile Manager to set up multiple profiles, and then the ProfileSwitcher addon would help with launching them? I'm pretty sure multiple profiles are not going to share cookies, anyway. I can't speak to whether it'll do anything weird with Private Browsing, but it sounds like you're really just using Private Browsing to simulate having multiple profiles open.

0

The OP does not mention security as an issue, just having more than two session containers. The current solution for this is to use Firefox Containers.

crantok
  • 131
  • 3
0

If you simply wish to avoid sharing cookies and other elements when testing a website, for example :
Simply use Firefox Container Tabs:
Right click (on a tab or link) > Open in New Container

This is sufficient for most cases, but note that it is not supported on private browsing. If you still need a private window, use the Multi-Account Containers extension.

Zorro
  • 204