Re: Programatically Login



Yes, it could use view state or session state, or cookies to track whether
you are logged in.

If it is view state or session state, then you can enter the information on
the login page and it will track you until your session ends.

If it is a cookie, then when you login you will have to capture the cookie
and send it in subsequent requests. You will also have to worry about the
expiration and/or the system rejecting or not using your cookie. In other
words, if you go directly to a URL and you are redirected to a login page,
your program will have to be smart enough to know which page it got and what
to do based on the page.

Also, what if they simply change the login and/or other pages? How will you
know if they changes a page, and for example added a new field between
username and password called favorite color to the form?

Hope this helps...

Frisky

"Zachary Burns" <zacharyburns@xxxxxxxxxxx> wrote in message
news:%23ULH3dzgFHA.3000@xxxxxxxxxxxxxxxxxxxxxxx
> I'm trying to scrape a page that requires me to login to it. I'm not sure
> if it uses cookies or not to track if I'm logged in, could it be using
> viewstate?
>
> Anyway, can I do this using the HttpRequest and HttpResponse methods?
>
> I didn't see anything on google groups about this that was of any help.
> Does anybody have a C# snippet that might put me on the right path?
>
> Zack
>


.



Relevant Pages

  • Re: persistant cookie, what is it?
    ... Why don't you use Session State? ... cookie to identify the client. ... All you need to do to not persist a cookie is not to set ... client until the domain is navigated away from, or the browser is closed. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Frontpage Email Question
    ... Check into setting a cookie or session state after user submits their email ... address on the "login" page. ... to other pages on my website, I use Frontpage 2003 any help is much ...
    (microsoft.public.frontpage.programming)
  • Re: Programatically Login
    ... I found out it is a cookie and that is getting passed around after I ... Is there a way to capture a cookie and pass it around using ... > Yes, it could use view state or session state, or cookies to track whether ... > on the login page and it will track you until your session ends. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Role Providers Cache
    ... If you are trying to avoid using session state (always a good idea in my ... the values in the cookie as the representative byte array of the roles. ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... We will be writting our own role provider but would like to do ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cookie and Webpage Question
    ... I am assuming that what you mean by sticky sessions is ... use ASP.Net Session state InProc mode. ... cookie to be used throughout the application. ... Read the cookie when the page first loads ...
    (microsoft.public.dotnet.framework.aspnet)