progmatic Form post (HttpWebRequest / Response) sessions

From: Ron Vecchi (vencenzo_at_online.nospam)
Date: 06/16/04


Date: Wed, 16 Jun 2004 11:48:07 -0400

I know this has messiness written all over it but I have a question about
using HttpWebRequest/Response to essentially spider a website and post
information to the forms. The (very) basic goal is to progmattically
access a login account by posting the username and password and then
maintaining the session so that the program can continue to access web pages
that require a valid login sesssion.

The big if for me is maintaining the session thoughout all this so the
server recognizes me after the initial post to gain access. Two scenariaos
come to play.
--------------
If the server maintains the sessions(no cookies) I am uneasily predicting
that session state will remain fine.
--------------
If cookies are used I am a little sceptical on how to maintain state. If I
can access the cookie then it will need to be stored in memory and
retransmitted back to the server on the next access.

Has anyone tried this and got it to work. Or any insight is defiunatly
appreciated.

Thanks,
Ron



Relevant Pages

  • Re: Attempt to de-mystify AJAX
    ... >>maintaining a session via URL is not a problem. ... >> around cookies and JS, but it seems to be tough. ... >> as needed back to the server. ... but as I mentioned before - a non-dynamic request by the browser can ...
    (comp.databases.pick)
  • RE: Trouble with huge amount of State Server Sessions Timed out
    ... "Unable to serialize the session state. ... > State Service or SQL Server can be memory intensive depending on the types ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Client-Side Session Data
    ... token on the client, but does it keep the session *data* on the ... How Not To Use Cookies ... Userdata belongs on the server, ... Session time out and cookies, ...
    (comp.lang.php)
  • State Server not working
    ... We have an application that uses sessionState set up in Web.config is ... I am getting the error "Unable to make the session state request to ... the session state server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: web replication
    ... Session cookies relate to memory in the server, ... , i'm actually studying the lvs documentation, ipvs via nat use nat to ...
    (comp.os.linux.networking)