Results 1 to 4 of 4

Thread: How to keep a network session

  1. #1
    Join Date
    May 2009
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to keep a network session

    Hi, I'm a network programming beginner.

    Now I use QNetworkAccessManager to post some web-site ,user name and password,
    and got some html codes.
    Then how to keep session with that web-site to use outside of manifactured app (ex : Web browser )?
    Is any good samples for this ?

    thanks

  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: How to keep a network session

    You either get a cookie you can retrieve and re-use in the external app or you have to send the user/password pair with each request.
    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. The following user says thank you to wysota for this useful post:

    imunolion (26th May 2009)

  4. #3
    Join Date
    May 2009
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to keep a network session

    Thank you for repliy.

    And when the dialog destroied, delete that cookie,right ?
    Then I can study about cookies.
    Thanks a lot.

  5. #4
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to keep a network session

    Quote Originally Posted by imunolion View Post
    Thank you for repliy.

    And when the dialog destroied, delete that cookie,right ?
    Then I can study about cookies.
    Thanks a lot.
    Yes!
    But If you does not set the life time of cookie, it destroyed when your browser closed.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  6. The following user says thank you to ashukla for this useful post:

    imunolion (26th May 2009)

Similar Threads

  1. Replies: 12
    Last Post: 22nd March 2009, 11:22
  2. Replies: 0
    Last Post: 5th February 2009, 23:41
  3. Query @ SESSION
    By ashukla in forum General Programming
    Replies: 3
    Last Post: 15th May 2008, 11:19
  4. Checking network availability
    By fullmetalcoder in forum Qt Programming
    Replies: 2
    Last Post: 10th March 2008, 19:23
  5. No network when Modem Emulator connect to a real device
    By tommy_tang in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 10th December 2007, 08:24

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.