Results 1 to 3 of 3

Thread: QWebView logouts while surfing

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QWebView logouts while surfing

    Hi guys,
    I have a problem and need your help. I work with Qt 4.8.1
    The problem:
    I have one instance of QWebView and I set an url. Everything works and the page is loaded. The loaded WebApp requires login and uses cookies.
    After login the user can navigate through the webapp. After several navigations (variable) the session seems to expire and the login page appears.

    I tried a lots of things. I receive the cookie through QNetworkCookieJar and can read it.
    The raw format of the cookie looks like this: JSESSIONID=C419FDE26FE26E68988AE3D6E3D90D77; secure; HttpOnly; domain=xxx.yyyy.com; path=/share/

    So the cookie is there, but the session is lost after some navigations. Maybe you can give me a hint what's the problem. It's just one instance of QWebView and one WebApp!

    And server config says, that a sessioncookie expires after one hour. On FireFox or Chrome it works as expected.

    It would be very nice to solve this problem,
    thank u
    Last edited by Qiieha; 28th February 2014 at 15:42.

Similar Threads

  1. Replies: 8
    Last Post: 3rd September 2013, 09:51
  2. QWebView
    By Magu in forum Newbie
    Replies: 1
    Last Post: 22nd October 2009, 09:06
  3. QWebView
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 18th March 2009, 05:32
  4. QWebView
    By ivi2501 in forum Qt Programming
    Replies: 1
    Last Post: 30th December 2008, 12:57
  5. QwebView
    By peace_comp in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2008, 18:20

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
  •  
Qt is a trademark of The Qt Company.