Support of isolated sessions

2,122 views
Skip to first unread message

Stephen Cheng

unread,
Nov 6, 2013, 11:24:12 PM11/6/13
to chromi...@chromium.org
I'd like to be able to sign into multiple accounts at the same time (say, facebook account) within one chrome profile. I know incognito window can help create an isolated session from the regular session. However, if I create multiple incognito windows, they are tied together as a single shared session. Therefore, I can't sign into more than two accounts at the same time. I can only sign into one account in the regular session and another account in the incognito session.

I guess what I asking for is similar to the "New Session" in IE. Is that supported at all in chrome?

Dominic Mazzoni

unread,
Nov 6, 2013, 11:35:38 PM11/6/13
to Shanfeng Cheng, chromium-dev
Have you tried the multiple users feature? https://support.google.com/chrome/answer/2364824?hl=en

On Wed, Nov 6, 2013 at 8:24 PM, Stephen Cheng <sfc...@gmail.com> wrote:
I'd like to be able to sign into multiple accounts at the same time (say, facebook account) within one chrome profile. I know incognito window can help create an isolated session from the regular session. However, if I create multiple incognito windows, they are tied together as a single shared session. Therefore, I can't sign into more than two accounts at the same time. I can only sign into one account in the regular session and another account in the incognito session.

I guess what I asking for is similar to the "New Session" in IE. Is that supported at all in chrome?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Shanfeng Cheng

unread,
Nov 6, 2013, 11:47:59 PM11/6/13
to Dominic Mazzoni, chromium-dev
I am aware of that. But I would like to do that within one user profile.
 
In firefox, each private window is completely isolated from other private windows. IE supports separate sessions on top of private browsing. Chrome is the only one that doesn't have good support of separate sessions.
 
We should be able to improve this scenario by make different incognito windows isolated from each other. Will it be very difficult to do technically?
 

Shanfeng Cheng

Shanfeng Cheng

unread,
Nov 19, 2013, 3:08:48 PM11/19/13
to Dominic Mazzoni, chromium-dev
In follow up to this issue, I found that in ProfileImpl::GetOffTheRecordProfile( ), it only creates a single incognito session per regular profile no matter how many incognito windows the user chooses to open.
 
I have done experimental changes to this function, which allows the creating a separate incognito profile per incognito window. After the experimental change, I am able to log into different accounts with the same website at the same time in different incognito windows. It looks like at least the cookies are successfully isolated. The Incognito-session-only preferences are still shared (are these preferences used by the extensions?) but I am not sure how critical that is.
 
I think it might be nice to support multiple incognito sessions in chrome and it doesn't seem like a daunting task to support it. It's just a personal suggestion and it's a feature needed only by a small percentage of users.
 

Stephen Cheng
 
Date: 2013-11-06 23:35
Subject: Re: [chromium-dev] Support of isolated sessions

Stuart Morgan

unread,
Nov 19, 2013, 7:18:21 PM11/19/13
to sfc...@gmail.com, Dominic Mazzoni, chromium-dev
On Tue, Nov 19, 2013 at 12:08 PM, Shanfeng Cheng <sfc...@gmail.com> wrote:
I think it might be nice to support multiple incognito sessions in chrome and it doesn't seem like a daunting task to support it.
As far as I remember, the decision about incognito behavior was a UX decision (e.g., what happens if a site does window.open; how will users understand that some of their windows share cookies and others don't?), not a technical decision.

You're welcome to support it in your build, but it's not something that would be accepted into Chromium unless the intended behavior of the feature is revisited by UX.

-Stuart

Shanfeng Cheng

unread,
Nov 19, 2013, 7:28:46 PM11/19/13
to Stuart Morgan, Dominic Mazzoni, chromium-dev
Thanking for sharing the information.
 

Shanfeng Cheng
Reply all
Reply to author
Forward
0 new messages