Solved

wcf sessionId question

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 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