I have a winforms app that access a web resource using forms authentication.
I programatically login to the site, and catch the cookies. I then pass the
cookies to my httpwebrequest.
I neet to know how to tell when the cookie has expired so that I can have
the app login again.
The other issue is session timeout. the web resource is Exchange Outlook Web
Access. It will time an inactive session out. how do I determine if my
session has timed out, so I can fource another login
I have considered logging in for every httpwebrequest, but when attempt to
do that I get a timeout response from the login procedure unless I unload
the app and start it back up again. At first I thought I was not disposing
the httpwebrequest or the cookie cache properly, but I double checked and
made sure that all my objects were disposed, or set to equal nothing when
the procedures finishes
|