Solved

wcf sessionId question

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

691 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