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?

user553702
  • 1,301
  • 3
  • 15
  • 19

5 Answers5

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,268
  • 1
  • 17
  • 24
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.

ropeladder
  • 131
  • 3
  • 2
    Containers [has graduated](https://medium.com/firefox-test-pilot/firefox-containers-are-go-ed2e3533b6e3) from a Test Pilot experiment to [an extension](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/). – Mathieu K. Apr 17 '18 at 20:23
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.

crantok
  • 111
  • 3
  • 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 '22 at 08:26
  • @ジョージ That's correct. I'll edit to mention that. – crantok Jul 24 '22 at 16:29
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.

Periphrastic
  • 126
  • 2
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
  • 111
  • 3