Sharing a profile
Although we can view multiple tabs in our browser, there is a small problem in the way they work with authenticated websites. Visit any website where you have a login account; log in, then Ctrl + click on a link within the site to open it in a new tab. You'll find that you aren't authenticated in the new tab. This can be a real problem with sites that use multiple windows or tabs to implement their user interface. We'd like authentication and other session data to be browser-wide, so let's fix this.
Session information is stored in a profile that is represented by a QWebEngineProfile object. This object is autogenerated for each QWebEngineWidget object, but we can override it with an object of our own.
Start by creating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access