Session Retention using WebRequest + WebResponse
-
Hi, I'm trying to implement a WAP front end for a Website, but the website i am trying to wrap requires an active session for users to use it. I've created the WAP pages on a seperate server and have the requests sent to a worker process that processes the live Webpages. However, using the WebRequest and WebResponse, i can't seem to maintain an active session (I'm re-creating a new instace for each request). How would i go about retaining a session between multiple requests? OR, how can i use a single request object to make multiple consecutive request? Any examples or articles would be appreciated. Cheers Tris
-
Hi, I'm trying to implement a WAP front end for a Website, but the website i am trying to wrap requires an active session for users to use it. I've created the WAP pages on a seperate server and have the requests sent to a worker process that processes the live Webpages. However, using the WebRequest and WebResponse, i can't seem to maintain an active session (I'm re-creating a new instace for each request). How would i go about retaining a session between multiple requests? OR, how can i use a single request object to make multiple consecutive request? Any examples or articles would be appreciated. Cheers Tris
-
Hi, I'm trying to implement a WAP front end for a Website, but the website i am trying to wrap requires an active session for users to use it. I've created the WAP pages on a seperate server and have the requests sent to a worker process that processes the live Webpages. However, using the WebRequest and WebResponse, i can't seem to maintain an active session (I'm re-creating a new instace for each request). How would i go about retaining a session between multiple requests? OR, how can i use a single request object to make multiple consecutive request? Any examples or articles would be appreciated. Cheers Tris
If you are using HttpHandler, then you need to have IRequiresSessionState interface (marker interface) to be implemented. Then the automatic WebRequests would pass through.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips