open new window with current page's cookies session



  • What else do I need to open the new page in another window with current page's session cookie? that new page requires authetication hence the need to pass the cookies, but something is missing, I guess, because the new page is redirected to login.
    Here's my current createWindow overload:

    QWebView *browserControl::createWindow(QWebPage::WebWindowType type)
    {
        Q_UNUSED(type);
        QWebView *webView = new QWebView;
        webPage *newWeb = new webPage();
        newWeb->setNetworkAccessManager(this->page()->networkAccessManager());
        webView->setAttribute(Qt::WA_DeleteOnClose, true);
        webView->setPage(newWeb);
        webView->show();
        return webView;
    }
    


  • Sharing networkAccessManager between pages should be enough

    Could you check what cookies were actually transmitted via WebInspector?


Log in to reply
 

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