PDA

View Full Version : How to keep a network session



imunolion
25th May 2009, 07:30
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

wysota
25th May 2009, 08:35
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.

imunolion
25th May 2009, 08:41
Thank you for repliy.

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

ashukla
25th May 2009, 11:04
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.