Accessing and displaying SSL web pages and cookies from a windows form

From: Justin Engelman (GlobNews_at_adelphia.net)
Date: 02/25/04


Date: Tue, 24 Feb 2004 20:23:48 -0800

Hi,
I have a website that uses an ISAPI filter that will redirect anyone going
to any page on the site to an SSL login page (on a different website with
the same root domain) if they do not have the appropriate session cookie
already. After logging in on that page successfully they are given the
cookie and redirected back to the page they initially tried to go to.

I would like to create a Windows application that gets data from that
website and utilizes that SSL login form and the session cookie generated by
it. Then as the user is using the application it will make calls to the
website to get needed information, which will cause the ISAPI filter to see
that the user has that cookie.

I don't have control over the user logins or passwords or the ISAPI filter
code or SSL login page.

My question is, is it possible to display the login webpage from my
application when the application is first loaded, then to capture the cookie
after the user logs in and the data generated by the page they are
redirected back to after login. If it is, how would I go about doing that?
Also, how would my application "remember" the user's cookie so that
subsequent calls to my website to get data can authenticate the user from
the data in the cookie and also not redirect to the login page.

Thank you for any help you can give me,
Justin



Relevant Pages

  • Re: Accessing and displaying SSL web pages and cookies from a windows form
    ... or LoadXML calls to urls on the website in order to get data or post data to ... first redirected to a SSL login page, if a particular cookie is not present, ... cookie is not present instead of getting the data. ... >> the data in the cookie and also not redirect to the login page. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Accessing and displaying SSL web pages and cookies from a windows form
    ... > I have a website that uses an ISAPI filter that will redirect anyone going ... > cookie and redirected back to the page they initially tried to go to. ... > website and utilizes that SSL login form and the session cookie generated ... > the data in the cookie and also not redirect to the login page. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: A little problem with Forms authentication :-(
    ... I'm using forms authentication and the user is getting authenticated no ... should be redirected to the login page. ... I've set the time out for the cookie to the test value of 1 ... redirect from login bit because as I understand it, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: FormsAuthentication.RedirectFromLoginPage()
    ... Maybe there is some problem in your cookie code and you get bounced back again to login.aspx....?! ... Dominick Baier - DevelopMentor ... the login form is taking care of ... Is it possible to redirect from the login page to a page other than ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cookie Redirect Script
    ... of comp.lang.javascript make plain: ... > On my website, I get quite a bit of 404 traffic. ... > for is the first time a surfer goes to the 404 page, it will redirect ... Make your 404 page a page which just checks the cookie, ...
    (comp.lang.javascript)