Can you give me a scenario when you would use “Allowed” as the SessionMode value in a WCF service contract?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).