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
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.
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.
Re: How to keep a network session
Quote:
Originally Posted by
imunolion
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.