Enable multiple sessions in Firefox
Posted by Steve BrownleeNov 18
By default, Firefox shares one session across all browser windows that you open. Unlike Internet Explorer or Netscape who both differentiate between opening a copy of a window (thus the same session) and a new window (thus a new session). I love Firefox and use it almost exclusively, but professionally there are times when I need to have two windows open with two sessions. At first, I thought that if I simply had two profiles, that’s all I would need, but it didn’t do the trick.
Then browsing around yesterday, I discovered this little known environment variables - MOZ_NO_REMOTE - that makes this magic happen. Therefore, there’s two ingredients to getting this to work.
- Firefox profiles
- MOZ_NO_REMOTE
To make multiple profiles for Firefox, simply run “Firefox.exe -P” from a command line. This opens up the Profile Manager. Create as many profiles that you feel you’ll need independent sessions. Then create a shortcut to Firefox.exe on your desktop or quickbar for each profile you made. Right click the icon for each shortcut and open the properties window. In the Target field you need to specify which profile to use when launching Firefox like this - “F:\Program Files\Mozilla Firefox\firefox.exe” -P “ProfileA”
Then just create a new environment variable MOZ_NO_REMOTE with a value of 1.
Then you can click each Firefox icon and you’ll have a seperate session for each of your browser windows. Have fun.

thanks for the info…
Hi Steve,
That’s something i have needed for a while now. This information is a life saver!! Thanks so much.
Peter.
profile is clear
but how do I do this change?? how to access this variable
Then just create a new environment variable MOZ_NO_REMOTE with a value of 1.
Thanks for the Information.
about:config
[ETR-12113] Two browsers pointing to different environments interfere with each other
Source: http://www.fusioncube.net/index.php/multiple-sessions-firefox.html
By default, Firefox shares one session across all browser windows that you open. Unlike Internet Explorer or Netscape who both differentiate between opening a copy of a wind…
Rajesh: Clear information on how to create and set the environment variable can be found here http://forums.mozillazine.org/viewtopic.php?p=1074901
Great solution Steve
I love it!
You can also use a Firefox plugin/extension called CookieSwap. I think it takes advantage of the same method used here, just in the form of an extension.
Find it at: https://addons.mozilla.org/en-US/firefox/addon/3255
I did these profiles. It’s working and really helping me. hehe but i need more info and help:
How to make firefox tabs for use different profiles. I already tried CookieSwap add-on but it lets use only 3 different profiles. Thnx
No need to set the environment variable anymore.
Just call “firefox.exe -no-remote -P profile_name”
Read here: http://developer.mozilla.org/en/docs/Debugging_Mozilla_on_Windows_FAQ#Running_two_instances_of_Mozilla_simultaneously
BTW, the current version of the Firefox extension CookieSwap is not working properly under Firefox 3.0, but according to the blog of the guys who develop the extension they are working on an update. The difference between the profile solution and CookieSwap solution is that CookieSwap lets you open different sessions in new tabs of the same window whilst the profile solution is only applicable for new windows altoghether. Having different sessions in different tabs of the same window is a big advantage. Lets hope they will release their new soon.
Is there a way to do this on a MAC? I’m running OSX 10.4