Archived Forum Post

Index of archived forum posts

Question:

Preserve current Session with HTTP Request (classic ASP)

Apr 09 '14 at 14:38

I've been trying to accomplish this with MSXML2.ServerXMLHTTP, but this seems impossible. I really need to preserve the current session between my current ASP script and the page that I'm trying to load.

Is there any way to do this with the Chilkat HTTP Request object? Can I add the cookie header to make it work? Or is there another way?


Answer

There are many possible ways to do it with Chilkat HTTP. In general, the HTTP protocol is stateless (I'm sure everyone knows this) and to maintain a session requires a persistent piece of information that identifies the session,and is sent with each HTTP request belonging to the session.

This can be accomplished with cookies. It can also be accomplished with ad-hoc session ID's in a request header field, or as a request parameter (such as URL-encoded within the URL for GET's or within the request body for POSTs/Puts/etc.

There is no single answer -- it really depends on how you wish to design your session handling within your application.