Results 1 to 8 of 8

Thread: Cookies....Again....

  1. #1
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Cookies....Again....

    Hello, how to save cookies in file, and then load it from there...
    I creater cookiejar and set it in QNetworkAccesManager:
    Qt Code:
    1. acmngr= new QNetworkAccessManager(this);
    2. cookie= new QNetworkCookieJar(this);
    3. tab_page->page()->setNetworkAccessManager(acmngr);
    4. tab_page->page()->acmngr()->setCookieJar( cookie );
    To copy to clipboard, switch view to plain text mode 
    Whats next?How to write them in file???
    And how to load them from file???

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cookies....Again....

    You need to subclass the cookie jar class and use the two interesting protected virtual methods.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Cookies....Again....

    Thanks for answer.
    Do anyone knows how to accelerate Flash Plugin in QWebView????
    Videos from youtube lags a lot....

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cookies....Again....

    Quote Originally Posted by TJSonic View Post
    Do anyone knows how to accelerate Flash Plugin in QWebView????
    Videos from youtube lags a lot....
    Buy a faster computer or start a new thread on the forum related to the problem. I think it is safe to assume the problem is not related to cookies.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Cookies....Again....

    Ok..but i think that the case not in my computer becase for examle in opera videos runs normally..

  6. #6
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cookies....Again....

    Quote Originally Posted by wysota View Post
    You need to subclass the cookie jar class and use the two interesting protected virtual methods.
    Excuse me, I have similar problem and I don't get which two did You mean...
    http://doc.qt.nokia.com/4.7/qnetworkcookiejar.html

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cookies....Again....

    QNetworkCookieJar has only two protected methods so it's not hard to choose which two I was referring to in my post.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cookies....Again....

    but how to use them. can you tell brief about that. thanks

Similar Threads

  1. Replies: 2
    Last Post: 6th October 2010, 23:09
  2. QNetworkAccessManager can't handle multiple cookies?
    By krippy2k in forum Qt Programming
    Replies: 5
    Last Post: 8th June 2009, 00:12
  3. I get only 1 of 4 cookies...
    By cherva in forum Qt Programming
    Replies: 33
    Last Post: 5th June 2009, 16:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.