How can I get a new browser session when opening a new tab or window on Firefox/Chrome?
In Chrome you can use private browsing to achieve the same.
Chrome - Wrench(tools) menu/open new window without history
In Firefox you can use IE tab extension, and have another tab rendered with an IE engine to achieve the same effect.
Here are some other options: http://www.computer-realm.net/managing-multiple-gmail-accounts-with-firefox/
As of Firefox 57 AKA Firefox Quantum, the Firefox Multi-Account Containers extension (developed by Mozilla) will allow you to use multiple accounts on the same website, with a different account per tab or window.
Under the hood, it separates website storage into tab-specific Containers. Cookies downloaded by one Container are not available to other Containers. With the Firefox Multi-Account Containers extension, you can...
- Sign in to two different accounts on the same site (for example, you could sign in to work email and home email in two different Container tabs.
- Keep different kinds of browsing far away from each other (for example, you might use one Container tab for managing your Checking Account and a different Container tab for searching for new songs by your favorite band)
- Avoid leaving social-network footprints all over the web (for example, you could use a Container tab for signing in to a social network, and use a different tab for visiting online news sites, keeping your social identity separate from tracking scripts on news sites)
After installing the Firefox Multi-Account Containers extension, click the Containers icon to edit your Containers. Change their colors, names, and icons. Long-click the new tab button to open a new Container tab.
Firefox versions prior to 57 can use:
Multifox is an extension that allows Firefox to connect to websites using different user names. Simultaneously!
For example, if you have multiple Gmail accounts, you can open them all at the same time. Each Firefox window, managed by Multifox, accesses an account without interfering each other
Each Multifox window is flagged with a number indicating the identity profile. Logins made in windows with different numbers are isolated.
Logins are preserved the same way they are in “regular” windows. Even if you close the window or quit Firefox.
The identity profile of each window is preserved when Firefox restores the session.
It can also easily switch between profiles:
This answer answers specifically the question/user case described here: Chrome - Open separate browser windows, each in incognito mode, that do not share data between. However, that question is locked since it is marked as a duplicate, pointing to this question, so I can't post an answer there.
For Google Chrome, if you want a simple way to have a new browser window with a new, temporary session (that is not sharing cookies with other sessions/windows), invoking a simple script can do the trick.
(Opening a new window in incognito mode gives ju one more session, however, further incognito windows will belong to that same session - so normal mode + incognito mode will give you at most two separate sessions in total, regardless of number of windows.)
I use the following. It's written for OS X. It further opens the window in incognito mode. Simply drop --incognito
if that's not desired.
#!/bin/sh
RND_DIR=/tmp/$RANDOM
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=$RND_DIR --incognito
rm -R $RND_DIR