How Can We Extract A String From A Cookie, In Windows Form
-
Dear Friends, I have a problem. I want to use a cookie for some kind of data sharing between the Web Based part of my App. and the Windows Based part. (I insert my desired value in a cookie using Asp .Net, but I can not read it from my Windows Forms!) The problem is, when I extract the Data With HttpWebRequest obj, that string is something like an encrypted string! something like this : 12wec4hdnx56ye4fdh (and it's not fixed) I'll be thankful if you would help me. Regards, Babak P.S. I tried it with a Web Service method, but the problem is still the same !! There is no problem when I read it in an ASP.Net page.
-
Dear Friends, I have a problem. I want to use a cookie for some kind of data sharing between the Web Based part of my App. and the Windows Based part. (I insert my desired value in a cookie using Asp .Net, but I can not read it from my Windows Forms!) The problem is, when I extract the Data With HttpWebRequest obj, that string is something like an encrypted string! something like this : 12wec4hdnx56ye4fdh (and it's not fixed) I'll be thankful if you would help me. Regards, Babak P.S. I tried it with a Web Service method, but the problem is still the same !! There is no problem when I read it in an ASP.Net page.
you need to have private System.Net.CookieContainer Cookies = new System.Net.CookieContainer(); mt.CookieContainer = Cookies; where mt is your webservice
-
you need to have private System.Net.CookieContainer Cookies = new System.Net.CookieContainer(); mt.CookieContainer = Cookies; where mt is your webservice
Would you please explain it more ? what is mt?! the web service that do what, and how ?
-
Would you please explain it more ? what is mt?! the web service that do what, and how ?
sorry, the web service that your windows form has subscribed to with the following private System.Net.CookieContainer Cookies = new System.Net.CookieContainer(); public localhost.Service1 mt = new localhost.Service1(); mt.CookieContainer = Cookies;
-
sorry, the web service that your windows form has subscribed to with the following private System.Net.CookieContainer Cookies = new System.Net.CookieContainer(); public localhost.Service1 mt = new localhost.Service1(); mt.CookieContainer = Cookies;
Excuse me please, but what is the structure of my webservice ?! what should it do?!
-
Dear Friends, I have a problem. I want to use a cookie for some kind of data sharing between the Web Based part of my App. and the Windows Based part. (I insert my desired value in a cookie using Asp .Net, but I can not read it from my Windows Forms!) The problem is, when I extract the Data With HttpWebRequest obj, that string is something like an encrypted string! something like this : 12wec4hdnx56ye4fdh (and it's not fixed) I'll be thankful if you would help me. Regards, Babak P.S. I tried it with a Web Service method, but the problem is still the same !! There is no problem when I read it in an ASP.Net page.