Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. How to implement QCookieJar in Qwebkit to keep session presist
Forum Updated to NodeBB v4.3 + New Features

How to implement QCookieJar in Qwebkit to keep session presist

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 3.0k 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    what is the proper way to implement QCookieJar into Qwebkit so when i loading page that has "Keep me logged in" checkbox (that is using cokcies ) next time i visit the page it will keep me logged in. i followed the tutorial here :

    "http://skami18.wordpress.com/2010/09/25/qtwebkit-des-cookies-persistantes-avec-qwebview/":http://skami18.wordpress.com/2010/09/25/qtwebkit-des-cookies-persistantes-avec-qwebview/

    in my constructor i set :
    @m_cookieJar = new QCookieJar("Cookies.dat");@

    and then i set

    @QNetworkAccessManager *m_manager;
    m_manager->setCookieJar(m_cookieJar); @

    but its not working

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fcrochik
      wrote on last edited by
      #2

      I assume you either changed the name of the class on your implementation or you mistyped on your post (the class on the tutorial is called just CookieJar).

      I did not check the tutorial but if I have to guess you are setting the cookie jar to a different instance of the networkmanager than the QWebPage is using.

      If that is not the case, please post more of your code so we can help you.

      Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

      1 Reply Last reply
      0

      • Login

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