Forum Moderators: open

Message Too Old, No Replies

Webservice and cookies

Setting a cookie from a webservice

         

nicosiam

10:20 pm on Dec 15, 2003 (gmt 0)



Hello,

I have a web site in .NET written in C# that is executing a webservice also written in C#. I would like to set a cookie from the domain that the webservice is running on. However, I'm seeing that I can only create a cookie from the site that is calling the execution of the webservice.

Any ideas?

Thanks!

TheNige

11:54 pm on Dec 15, 2003 (gmt 0)

10+ Year Member



I'm not sure if it can be done, because your webserver is the one making the request to the webservice on the remote machine and not the client itself. So, even if it could set a cookie it would be to the webserver I think.

not sure if this will help but do a search on google for "session state and web service" (without the quotes) and look at the result from Microsoft.