1

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 Answers1

0

When you want to support both bindings which support sessions (e.g., a rich client) and those who don't (e.g. a browser-based client). If there is a session, you simply use the session, and if there's not, you'd either use a non-session-dependent codepath, or you'd use another mechanism to store the session information (such as HTTP cookies, for example).

carlosfigueira
  • 85,035
  • 14
  • 131
  • 171