Problems in Session Handling in webKIt



  • HI all,

    I am trying to use qtwebkit. but when i try to render a page where i neeed to handle a sessions like (gmail , yahoo or linkedin) , i am not able to maintain session using qtwebkit.
    i tried to used qnetworkcookiesjar in my application but still not able to do.

    @
    QNetworkAccessManager manager = new QNetworkAccessManager();

    QNetworkProxy proxy = new QNetworkProxy(ProxyType.HttpProxy,"proxy--.com", 8080);
    manager.setProxy(proxy);
    QNetworkDiskCache diskcache = new QNetworkDiskCache();
    diskcache.setCacheDirectory("c:/d/");
    QNetworkCookieJar cookies = new QNetworkCookieJar();

    manager.setCookieJar(cookies);

    manager.setCache(diskcache);
    page.setNetworkAccessManager(manager);
    page.settings().setMaximumPagesInCache(10);

    @

    I am using qtjambi so using Java in my coding.

    Please point me where I am doing wrong.

    Thanks



  • help needed ..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.