Solved

wcf sessionId question

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now