Getting Client''s Sessionid in WCF Server
If I declare session handling in Clientside as below is it possible to get know what is caller Client's SessionId
in Service method?
// Client
[ServiceContract(
Name = "SampleDuplexHello",
Namespace = "http://microsoft.wcf.documentation",
CallbackContract = typeof(IHelloCallbackContract),
SessionMode = SessionMode.Required
)]
[ServiceBehaviorAttribute(InstanceContextMode=InstanceContextMode.PerSession)]
public class DuplexHello : IDuplexHello
{
// Server
class Server
{
/// <summary>
/// Web Service operations
/// </summary>
public class BasicServices : IBasicService
{
public string MethodToCall(string Param)
{
String dataBack = ...
*******> // Can Serverside query what is caller client's Sessionid? <*****************
return dataBack;
}
Cheers

