10

I am used to of the old private browsing mode in Safari, where you can keep a login session between tabs. But since this new Safari came with Yosemite, the tabs maintain their own sessions.

Is there any way I can keep the login session between safari private tabs till the private window closes, just like how Google Chrome does?

2
  • 1
    Why the hell you want to do this? Chrome users have been striving this feature for years and you have it OOTB
    – Suncatcher
    Commented Apr 8, 2020 at 8:03
  • 2
    @Suncatcher Why the hell do you want to have any other flavour in ice-cream when vanilla exists? Different user different requirements.
    – noob
    Commented Apr 8, 2020 at 9:15

2 Answers 2

4

No, this is currently not possible. Safari Private Browsing tabs and windows do not share any session data and are completely independent, unless they are created by another tab (this will share cookies).

If you choose to open a new tab, it is started fresh. If the page opens a new tab, for example with a target="_blank" link, cookies and data is shared.

From the Apple Support KB "Safari for Mac: Use Private Browsing windows in Safari":

Browsing initiated in one tab is isolated from browsing initiated in another tab, so websites you visit can’t track your browsing across multiple sessions.

5
  • 1
    This doesn't seem to be true. If I ⌘-click a link in a Private Browsing tab, the new tab is logged out of whichever service. Commented Feb 21, 2015 at 5:56
  • @Elliott ~I don't remember what I was doing when I wrote this answer, but you're true now. Edited answer, thanks.~ Edited, put back.
    – grg
    Commented May 9, 2015 at 15:48
  • @grg I think it's still the case. When you click on a link and it takes you to a new tab, it'll keep cookies. This is the case because otherwise, say you needed to change an account setting by clicking a link that took you to a new tab. If the new tab started off as a blank slate, it would be impossible for you to change that setting. To prevent this shared cookies are allowed between those tabs.
    – Oion Akif
    Commented Jun 24, 2020 at 15:05
  • @OionAkif sadly it doesn't seem to work that way as of now. If you're logged into an account and you CMD click a link to open it in a new tab it logs you out, very irritating.
    – fyrekcaz
    Commented Jun 21 at 18:09
  • @fyrekcaz I've figured it out, and have also noticed the linked page has edited the quote to a similar effect. Your cmd-click is not the page taking you to a new tab, you're the one creating the new tab.
    – grg
    Commented Jun 21 at 18:42
0

I believe there is a way; it's incredibly inconvenient, suitable only for niche cases. Still, based on grg's answer, here's what I was able to do:

  1. Login to a service
  2. Inspect element of a link on the page
  3. Modify the HTML to include the target blank code
  4. Save and click the link

The login session was carried over unlike when using cmd-click.

So, by adding target="_blank" this:

<a href="/home/account" target="_blank"><i class="ab xy-icon"></i> My Account</a>

became this:

<a href="/home/account"><i class="ab xy-icon"></i> My Account</a>

You must log in to answer this question.

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