Solved

wcf sessionId question

Posted on 2013-01-24
1
540 Views
Last Modified: 2013-02-01
I used this illustration to transfer the sessionId from the host to the client and back when making a request to the service.

See this: http://blogs.msdn.com/b/wenlong/archive/2010/02/21/using-asp-net-sessions-from-wcf.aspx

I am able to pass the sessionId but I'm not sure how to pass the rest of the session data. I need to pass all of the OpenId login cridentials and the Open Authorization login credentials that are stored in the System.Web.HttpContext.Current.Session in the host.

Is it possible to collect all the session data from the host and send it to the client?
0
Comment
Question by:Derrick Hammond
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 38830744
use, you create custom header and add it to your request.Headers collection:
for instance:

var header = new MessageHeader<string>("Customer Unique Id: 12345");
var untyped = header.GetUntypedHeader("Identity", "http://www.adilmughal.com");
requestProperty.Headers.Add(untyped);

Open in new window


check here:
Client Additional Parameters using Custom Headers in WCF
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question