Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Allowing website to remember instance of my browser
Forum Updated to NodeBB v4.3 + New Features

Allowing website to remember instance of my browser

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nicky j
    wrote on 28 Jan 2014, 07:22 last edited by
    #1

    Hey everyone,

    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!

    Thanks!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 28 Jan 2014, 07:37 last edited by
      #2

      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.

      http://anavi.org/

      1 Reply Last reply
      0
      • R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 28 Jan 2014, 07:55 last edited by
        #3

        basically it is enough to use the same QNetworkAccessManager instance with each tab/QWebView

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nicky j
          wrote on 29 Jan 2014, 01:22 last edited by
          #4

          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?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            raven-worx
            Moderators
            wrote on 29 Jan 2014, 07:15 last edited by
            #5

            [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.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nicky j
              wrote on 30 Jan 2014, 23:37 last edited by
              #6

              Okay thanks!

              1 Reply Last reply
              0

              4/6

              29 Jan 2014, 01:22

              • Login

              • Login or register to search.
              4 out of 6
              • First post
                4/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved