Re: Web request with an existing cookie...



Thank you for your comments David. The site whose page I am trying to poll is
an asp website that is using forms authentication. I believe that once the
login form is submitted a session cookie is written back that is used to
authenticate the user. What I would ideally like to do is manually login to
the site to get the cookie on my hard drive then kick off my app using this
cookie to repeatedly poll the response time for a specified restricted page.

"David Lloyd" wrote:

> Andy:
>
> My understanding is that it depends on the type of authentication you are
> using. The CrendentialCache is used to store login credentials for multiple
> resources.
>
> This issue was addressed in the June, 2005 Web Q&A section of MSDN magazine.
> Please see the following link for more information and a code sample.
>
> http://msdn.microsoft.com/msdnmag/issues/05/06/WebQA/default.aspx
>
> --
> David Lloyd
> MCSD .NET
> http://LemingtonConsulting.com
>
> This response is supplied "as is" without any representations or warranties.
>
>
> "Andy Rose" <AndyRose@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:337AD704-40F4-4E47-9734-A5487A2880B2@xxxxxxxxxxxxxxxx
> Hi,
>
> I'm writing a small c# app to test response times of specific pages of a
> website. What I need to know is when I make the request to a restricted page
> can I pass an authentication cookie that all ready exists on my hard drive
> rather than go through a whole login process to capture the cookie? I
> suspect
> that this isn't an option but it would save me a whole world of time if it
> was.
>
> Thanks in advance for any help, Andy
>
>
>
.



Relevant Pages

  • 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: Forms authentication cookie handling question (C#)
    ... programmatically generate forms authentication ticket and set it in ASP.NET ... You use the Login control's "Authentication" event to do the user ... LoginControl's default code logic to generate authentication cookie. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms Authentication Name property
    ... you specify the name to be used for the authentication ... login page, then this can work. ... A cookie is saved by the BROWSER and ... The BROWSER chooses ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: SSL Forms Authentication Redirect - Problem Redirecting out of HTTPS
    ... allowing an authentication cookie to be passed over an HTTP ... My login script goes into SSL just fine. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Authentication Ticket Persistance
    ... applications which both use forms authentication. ... web.config that points the login page to the login page of the second ... The second application has one button which gets the cookie, ... My sample worked fine if both web applications were on the same machine ...
    (microsoft.public.dotnet.framework.aspnet.security)