SnapLinksPlus icon indicating copy to clipboard operation
SnapLinksPlus copied to clipboard

getting logged out when using snaplinks

Open thaliel opened this issue 3 years ago • 10 comments

on https://mirrorwood.com/hold

I want to use snaplinks to open the creature pages. But when I do, I am logged out of the site in all the new tabs

thaliel avatar Mar 09 '21 04:03 thaliel

That's bizarre, is this new behavior on that website? This isn't anything SnapLinks is even capable of doing.

What happens if you middle click a bunch of links quickly?

It has to be something they're doing on their end. There's literally nothing I do that would cause this, I'd have to be clearing cookies or session storage or messing up the link somehow and it would have shown up long before this.

cpriest avatar Mar 09 '21 13:03 cpriest

what do you mean by middle click?

thaliel avatar Mar 09 '21 14:03 thaliel

The middle mouse button on your mouse, the scroll wheel is also a middle button.

Clicking on a link w/ the middle button will open it in a new tab.

You can alternatively hold down ctrl on the keyboard while regular clicking a link to open it in a new tab.

Does the same behavior happen when you open the tabs quickly with middle-click or ctrl-click?

cpriest avatar Mar 18 '21 21:03 cpriest

I also have this issue. Seems to be fine with middle clicks. Even selecting a single link with snaplinks that tab gets redirected to the login page. The site is an internal site written in Django framework.

If i do not complete the login on the new tab and return to the original tab, I'm logged out there too (refreshing that page or middle clicking a link now redirect to the login page)

BikeMikeAU avatar Aug 14 '23 04:08 BikeMikeAU

This is typically due to a website doing something funky with its authentication that doesn't automatically transfer to a new window like persistent authentication normally should.

In your case, it could be that the middle click is opening a new window/tab, and that page is causing a logout to occur or some other way of invalidating your login session.

This should happen with or without SnapLinks on a middle or control-click (SnapLinks don't touch those).

cpriest avatar Aug 14 '23 15:08 cpriest

I have switched to linkclump, that works ok with this site

BikeMikeAU avatar Aug 15 '23 00:08 BikeMikeAU

Good to know, thanks!

cpriest avatar Aug 21 '23 12:08 cpriest

Hello,

I'm hit by this too, on another site. It's 100% reproducible, it's possible to create an account if you want to test it. I confirm it does work with linkclump, but not with snaplinks, unfortunately...

alaunay avatar Nov 05 '23 15:11 alaunay

Ah, it seems like the site creator found a thing. The site had SameSite=Strict as a cookie atttribute, and without it, snaplink works.

alaunay avatar Nov 05 '23 18:11 alaunay

Interesting, thanks @alaunay for the additional feedback. I'm reopening this ticket to investigate further with the SameSite=Strict web feature, perhaps I am not creating the new tab the most correct way any longer.

cpriest avatar Nov 07 '23 15:11 cpriest