Click here to Skip to main content
15,922,630 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralSystem.ServiceProcess Pin
ffowler22-Apr-08 5:37
ffowler22-Apr-08 5:37 
GeneralRe: System.ServiceProcess Pin
Mark Salsbery22-Apr-08 6:17
Mark Salsbery22-Apr-08 6:17 
GeneralRe: System.ServiceProcess Pin
ffowler22-Apr-08 7:12
ffowler22-Apr-08 7:12 
GeneralXQuery Pin
Gktony21-Apr-08 23:33
Gktony21-Apr-08 23:33 
GeneralRe: XQuery Pin
Christian Graus23-Apr-08 12:26
protectorChristian Graus23-Apr-08 12:26 
GeneralRe: XQuery Pin
Gktony23-Apr-08 22:00
Gktony23-Apr-08 22:00 
GeneralRe: XQuery Pin
Christian Graus23-Apr-08 22:02
protectorChristian Graus23-Apr-08 22:02 
QuestionDo SOAP-based web services see clients' cookies? Pin
Mark Schumann21-Apr-08 15:07
Mark Schumann21-Apr-08 15:07 
Hi all. I hope this is the right forum section for this kind of question.

My production environment gives the user a cookie that contains encrypted authorization data. My web service (which does not produce the cookie) is expected to read the value of the cookie, do some magic with it, and extract the name of the authorized user.

That's what they give me. A cookie.

The client side calls my service via SOAP and passes the cookie value through the "Cookie:" header. All other headers are seen by the service, but "Cookie:" is not. (I can see that Context.Request.Cookies is empty, and Context.Request.ServerVariables contains all of my headers except "HTTP_COOKIE".)

I can even pass my cookie data in another header, as long as it's not called "Cookie:".

It sure looks as though .NET doesn't want services to see cookies, to the point of filtering out the "Cookie:" header when it's sent.

My question is--am I crazy, or does the .NET Framework remove cookies from SOAP web service requests? And if so, is there a way to override that behavior, other than by building an equivalent to the "Cookie:" header and parsing it on the service side?

Again, the user is already authenticated through another mechanism, they already have the cookie, and I'm supposed to use the cookie to figure out who's making the request.

Thanks in advance for any insights as to how .NET Framework handles cookies on web service requests.
AnswerRe: Do SOAP-based web services see clients' cookies? Pin
led mike22-Apr-08 4:55
led mike22-Apr-08 4:55 
GeneralRe: Do SOAP-based web services see clients' cookies? Pin
Mark Schumann22-Apr-08 5:02
Mark Schumann22-Apr-08 5:02 
GeneralRe: Do SOAP-based web services see clients' cookies? Pin
led mike22-Apr-08 5:28
led mike22-Apr-08 5:28 
GeneralRe: Do SOAP-based web services see clients' cookies? Pin
Mark Schumann22-Apr-08 5:37
Mark Schumann22-Apr-08 5:37 
GeneralRe: Do SOAP-based web services see clients' cookies? Pin
led mike22-Apr-08 5:47
led mike22-Apr-08 5:47 
GeneralReport Server Pin
ctrlnick21-Apr-08 13:47
ctrlnick21-Apr-08 13:47 
GeneralRe: Report Server Pin
Mike Dimmick21-Apr-08 23:50
Mike Dimmick21-Apr-08 23:50 
GeneralIIS Error Pin
ctrlnick21-Apr-08 13:26
ctrlnick21-Apr-08 13:26 
GeneralRe: IIS Error Pin
Vasudevan Deepak Kumar24-Apr-08 20:40
Vasudevan Deepak Kumar24-Apr-08 20:40 
Generalpdf format Pin
Learning20-Apr-08 6:08
Learning20-Apr-08 6:08 
GeneralRe: pdf format Pin
Christian Graus20-Apr-08 11:54
protectorChristian Graus20-Apr-08 11:54 
GeneralRe: pdf format Pin
Vasudevan Deepak Kumar21-Apr-08 6:59
Vasudevan Deepak Kumar21-Apr-08 6:59 
GeneralRe: pdf format Pin
Thomas Stockwell22-Apr-08 4:41
professionalThomas Stockwell22-Apr-08 4:41 
Generalreal time video Pin
Chandrias20-Apr-08 4:43
Chandrias20-Apr-08 4:43 
GeneralRe: real time video Pin
Dave Kreskowiak20-Apr-08 12:21
mveDave Kreskowiak20-Apr-08 12:21 
GeneralInternalsVisibleToAttribute Pin
Mel Padden20-Apr-08 0:22
Mel Padden20-Apr-08 0:22 
QuestionBiztalk Developers/Architects? Pin
sksassociates18-Apr-08 8:37
sksassociates18-Apr-08 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.