Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Allowing website to remember instance of my browser
I have been making my web browser, and I was wondering if there is any way to allow websites to 'know' I'm signed in on this browser. On most mainstream browsers, if I login to google, Facebook, etc. and open a new tab, I am still logged in on this new tab. How can I set up my browser so I can stay logged in across multiple tabs?
Example code would be great!
leon.anavi last edited by
The session identifier is saved as a cookie so all opened tabs can access it, aka cookies must be supported and enabled by your web browser.
basically it is enough to use the same QNetworkAccessManager instance with each tab/QWebView
Ok how would I do that? each tab that I have open is a new instance of the browseTab class. How can I use the same NetworkAccessManager for all instances of the class?
[quote author="nicky j" date="1390958538"]Ok how would I do that? each tab that I have open is a new instance of the browseTab class. How can I use the same NetworkAccessManager for all instances of the class?[/quote]
well you are the only one who knows how your "browseTab" class looks like...
I guess you use a QWebView in each tab right? Then get the QWebPage of it and "set the network access manager":http://qt-project.org/doc/qt-4.8/qwebpage.html#setNetworkAccessManager on it.