Floating Web View Cookie Management

I'm not sure if this is exactly a bug or how it is intended to work, but websites I use in floating web view do not stay signed in, typically logging out after a few hours. This happens regardless of keep in background being on. Does this happen by design, and is there a way to save the cookies??

that should not be the case (I’m mostly using it with ChatGPT and never get logged out).
Is it maybe related to the user agent? Can you try setting a custom user agent that is the same to the default safari browser?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15

Your Safari is working correctly and not logging you out, right? (I have had general issues with Safari logouts on macOS Sonoma, but this seems to have been fixed with the recent macOS update)

In v 4.407 alpha I have added some extra code that tries to store cookies and session info in case the standard system persistence fails for whatever reason. Maybe try with that version.

thanks!

I've been using the safari user agent with the same results. I'm mostly using google keep and tend to get logged out after a restart, but remain logged in on safari. I'm on Setapp 4.401, fingers crossed the next update will fix it.

Just confirming this is now fixed thanks

1 Like

Hey @Andreas_Hegenberg,

I'm facing this issue as well. The strangest thing is that I'm also logged out after I go to fullscreen in a youtube video, but not only.

Steps to reproduce (at least on my end):

  1. Menu is expanding on hover to 500 x 500
  2. Click on a "standard item" which is then loading youtube on the "web item"
  3. Login
  4. Play some video
  5. Go to fullscreen using the youtube player
  6. Exit the full screen
  7. Search new video and I'm being prompted to login again
  8. After I exit the full screen my dock is also hidden and it is acting like the macOS setting "Automatically hide and show the Dock" is enabled, but in reality it is not. Maybe this should be opened as a separate issue, but still, I'm mentioning it here to get the whole picture.

Please let me know what is needed to debug this?

Thanks.

would you be able to share that menu or menu item? (right-click export to file)

Here it is:
exported_youtube_menu.bttpreset (115.0 KB)

The login seems to work/persist fine here, but I can reproduce the weird Dock issue. Which version of macOS are you on?

Version of macOS: 14.7.1 (23H222)

For me every time after full screen I'm being logged out, I've tried with user agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0, also tried with "Keep Active In Background", but without success.

This is reproducible every single time - even after BTT restart/quit and Macbook restart as well.

weird that works fine here (15.1)

there apparently now is an official way for allowing fullscreen on webviews (BTT still uses an inofficial hack because it wasn't officially supported in the past)

I'll try switching to the official way, maybe that will help.

1 Like

I'm not sure if it is related, but if I use Floating WebView (via a MenuBar Item), the logout issues does not happen (I'm also not logged out even if I stop/start BTT), however the dock one is still happening.

the web view doesn't know about the trigger type, so this is most likely coincidence.

However I haven't found a solution to the Dock issue yet. I was able to replicate it with a simple test-app, it seems to be a macOS bug with certain window styles. I'll do some more experiments with that soon.

Unfortunately I was celebrating too early - the logout still happens after macOS sleep.

Does it survive a restart of BTT?

I wonder whether the website is just logging you out after a certain amount of time or whether some data is not persisted for some reason. Does Safari work without logging out?

I have had the YouTube web view running for a few days without logout, but I have no idea what kind of logic Google uses to invalidate a login session. Maybe they recognize non-browser behavior and trigger a logout in that case

After a restart of BTT I'm not being logged out.

I'm logged into to YouTube, on Firefox, for pretty much forever and I was never logged out. Let me know if I should test with Safari.

I've set another menu bar with floating web view, for perplexity.ai, and I'm being also off after sleep as well.

maybe it is somehow related to having Firefox as default browser. Would be great if you’d check with Safari as BTT essentially uses the Safari engine

Actually Firefox is not my default browser. It used to be MS Edge, but now I've set BTT as default browser to take advantage of BTT_OPENED_URL.