Questions tagged [wcf-sessions]
21 questions
11
votes
2 answers
WCF sessions with a wsHttpBinding and without windows security
I need to create a WCF service that is hosted in IIS, uses http transport and hold state in the server’s memory. While I’m aware that stateful services aren't a good idea, this last constrain is necessary to make the service work with a legacy…

Robert
- 6,407
- 2
- 34
- 41
8
votes
2 answers
Why InstanceContextMode.PerSession behave like PerCall when using wsHttpBinding?
I have WCF service consumed by AJAX client using SOAP 1.2
Web.config:

Dor Cohen
- 16,769
- 23
- 93
- 161
7
votes
1 answer
Utilizing multiple service contracts over the same WCF channel or session
I'm in the process of writing a duplex WCF service using NetTcpBinding, and I've run into an architecture question that I think I know the answer to, but hope that I'm wrong.
Our service is stateful, and we've selected NetTcpBinding with PerSession…

Adam Robinson
- 182,639
- 35
- 285
- 343
6
votes
3 answers
how to enable WCF Session with wsHttpBidning with Transport only Security
I have a WCF Service currently deployed with basicHttpBindings and SSL enabled. But now i need to enable wcf sessions(not asp sessions) so i moved service to wsHttpBidnings but sessions are not enabled
I have…

Mubashar
- 12,300
- 11
- 66
- 95
5
votes
4 answers
WCF AuthorizationContext not cleared between calls from different clients. (was: When does a WCF service session actually end?)
I was doing some unit testing, and ran into an interesting problem in WCF. I have a service using the wsHttpBinding, configured as such:
…

CodingWithSpike
- 42,906
- 18
- 101
- 138
3
votes
1 answer
Azure appfabric service bus load balancing + session affinity (sticky session)
I was searching through Internet, and what I've found is just it is not possible on Azure external/internal endpoint...
How does Windows Azure perform load balancing?
But what I am looking for is, whether session affinity is possible on Service Bus.…

user1073029
- 116
- 1
- 3
3
votes
1 answer
WCF: How to detect new connections to WCF PerSession services?
I have a self-hosted WCF service with the InstanceContextMode set to PerSession.
How can I detect new client connections (sessions) to my service from the host application and use that new session context to observe my service through its…

Cristian Toma
- 5,662
- 2
- 36
- 43
2
votes
2 answers
WCF own EndpointBehavior read client Session
I have an IClientMessageInspector interface with BeforeSendRequest() method implemented.
In this method I want to retrieve the Session object set in the client. Something like.
public object BeforeSendRequest(ref Message request, IClientChannel…

DDan
- 8,068
- 5
- 33
- 52
1
vote
1 answer
How to deal with faulted state in a WCF duplex service with sessions enabled
I have a duplex WCF service with sessions enabled, and I'm trying avoid fault state exceptions on the client.
I found several discussions arround this topic, but all I have found suggest to recreate the client proxy or channel. Non is focus in…

Matias
- 33
- 3
1
vote
2 answers
Session Variable in WCF Service
I am just creating a normal wcf service which get the Person object and returns the List. I need to save incoming Person object in a session and returns the list. I have implemented the code like…

Akhil
- 1,918
- 5
- 30
- 74
1
vote
0 answers
Sessions not working with message security or transport security
I am trying to set up a WCF service that should be able to communicate with clients from Linux machines. The service should be able to support sessions so that I can keep track of the clients, as we are maintaining state for each client.
Since the…

WPFAbsoluteNewBie
- 1,285
- 2
- 10
- 21
1
vote
1 answer
When do you use "Allowed" as a SessionMode in WCF?
Can you give me a scenario when you would use "Allowed" as the SessionMode value in a WCF service contract?

Trevor
- 4,620
- 2
- 28
- 37
1
vote
0 answers
WPF Endpoint.Address change losing cookie
I have a wpf application that connects to a soap web service and I need it to connect to any number of locations for this web service so I am allowing the user to type in the URL in a textbox and it gets saved in the Properties.Settings. I am then…

hobeau
- 873
- 1
- 11
- 24
1
vote
1 answer
How does SessionChannel really work
I have failed to understand over and over from this MSDN article why should we use it and how does it work:
Datagram with sessions
Request-response with sessions
Duplex with sessions
Let's assume that I have a Service with
InstanceContextMode =…

Stav Alfi
- 13,139
- 23
- 99
- 171
0
votes
0 answers
how to maintain wcf service per session calling url from android studio
I created WCF service and calling it from the android studio and its working fine, but after implementing WCF perSession functionality it is working for a single user at a time.
Problem:
My problem is when i am hitting WCF url with multiple user my…

vipul Tiwari
- 46
- 5