Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 25, 2012 12:54 PM by roadkill4299
May 23, 2012 05:30 PM|LINK
Conditions: WinXP or WinServer 2008 R2, ASP.NET 4, ASP web application written using VS 2010 SP1, WCF self hosted server (part of bigger server). ASP.NET novice, but lots of programming experience. User login is handled in the application, not in authentication
Everything works fine in VS host, IIS hosted Web Application, remote and local.
Problem: I need to send and receive and store cookies between the web app and the server. 3 days into research and I cannot find anything that explains SIMPLY how to go about this. I found one item about sending a cookie from the web app using Response.Cookies.Add(myCookie):
Fiddler says it never happened. How to read a cookie MIGHT work in the web app, it uses Request.Cookies(), but how do I send one from the server? No idea.
In the server, neither of these objects is available. I did find the HttpCookieSession example, but with absolutely NO documentation or ideas about how to use it, I'm lost. It does build, but I have tried everything that I can think of to set the authorization
to anonymous - but it still crashes!
It would be really nice if someone could direct me to a readable overview of how cookies are supposed to work, objects to use and why it is so complex and clumsy - or so it seems thanks to the documentation (VS 2010 AND vs2008).
Any help will be greatly appreciated. If this is in the wrong forum, please feel free to move it.
May 24, 2012 07:20 AM|LINK
I think in Filddler it should be available in Headers section!
Regarding Cookies, you can read this -
Hope it helps u...
May 24, 2012 04:57 PM|LINK
Thanks for the response; I am using Fiddler 2: it breaks out the cookies into specific sections of the display.
The link is good, but in a WCF Self-hosted service, the Request and Response objects are deeply hidden, if they exist at all.
May 25, 2012 06:04 AM|LINK
Is your problem solved or not?
May 25, 2012 06:56 AM|LINK
Hi, this will help:
May 25, 2012 12:54 PM|LINK
Thanks for the link. I found this item on a thread in the MSDN Forums:
Sessions with WCF. Sessions in WCF provide a great state management facility between client and service."