When do you use "Allowed" as a SessionMode in WCF?

832 Views Asked by At

Can you give me a scenario when you would use "Allowed" as the SessionMode value in a WCF service contract?

1

There are 1 best solutions below

0
carlosfigueira On BEST ANSWER

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).