Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Accessing cookies in various web frames of a page loaded using QtWebEngineView
Forum Updated to NodeBB v4.3 + New Features

Accessing cookies in various web frames of a page loaded using QtWebEngineView

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 414 Views
  • 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.
  • P Offline
    P Offline
    Parth Shah
    wrote on last edited by Parth Shah
    #1

    We want to access cookies in various web frames of a page loaded using QtWebEngineView.

    Following is the code we have used to set cookie while loading our URL:
    m_store = DocumentInfodlgui->webEngineView_2->page()->profile()->cookieStore();

    QNetworkCookie networkCookie; networkCookie.setName("ASessionID");

    networkCookie.setValue(cachedUserInfo.getSessionId().toLatin1()); m_store->setCookie(networkCookie, url);

    DocumentInfodlgui->webEngineView_2->load(url);
    We have taken m_store as pointer to QWebEngineCookieStore as member variable of our dialog class.

    Now, after using this code we do get our cookie set for the URL, that we are loading, but it does not get propagated to the other web frames or jsp files which are getting called by server within that URL.

    How can we get them propagated to the web frames within the URL?

    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