Solved

wcf sessionId question

Posted on 2013-01-24
1
539 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
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

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…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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