Share session info between phantomjs webkit and .net httpWebRequest/Response
$30-99 USD
Cancelado
Publicado há mais de 11 anos
$30-99 USD
Pago na entrega
We have the following workflow requirements:
1) a .net application uses the Process object to run am instance of PhantomJS
2) when phantomjs runs it executes a .js javascript file which loads a web page (i.e. [login to view URL]), locates the username and password inputs and logs into the system.
3) at this point information about the user is sores in session cache on the server, and the user is redirected to a different page (a page which will only contain information if the relevant user information is in session state)
4) the phantomjs script completes, and execution is returned to c# .net where an internal httpWebRequest object is created to download the contente of the "logged in page".
now because the session id was provided initially by phantomJS, and because there is not automatically shared (through cookies) with other web browsers the fact that the user has logged in is lost once the .net code tries to access the lgged in pages.
We therefre need a way to share the cookie information between phantomJS and .net (so that the session id provided to the user through phantom, is also used by future requests to the same site using c# code).