13

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?

6 Answers 6

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.

2
  • 2
    MultiFox does not support multi--process Firefox (e10s) :-(
    – DReispt
    Jan 20, 2017 at 11:14
  • 2
    @Debra would you give a example command with -no-remote?
    – alhelal
    Feb 24, 2018 at 10:02
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.

1

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
1

On Linux:

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

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.

2
  • Even if we assume a single-user system (so that we don't have to care much about security) -- this would require some simple workaround to dispose the result of $(mktemp -d) after the session is over, wouldn't it? Although of course on most systems it will not survive a restart. Jul 21, 2022 at 8:26
  • @ジョージ That's correct. I'll edit to mention that.
    – crantok
    Jul 24, 2022 at 16:29
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.

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .