Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:59:01+00:00 2026-05-24T01:59:01+00:00

The service attribute SessionMode.NotAllowed and maxConcurrentSessions of serviceThrottling can be used simultaneously with wshttpbinding.

  • 0

The service attribute SessionMode.NotAllowed and maxConcurrentSessions of serviceThrottling can be used simultaneously with wshttpbinding.

Does this mean that they perhaps refer to two different concepts of session?

E.g.
SessionMode.NotAllowed = stateless service.
maxConcurrentSessions = max. concurrent (different?) security negotiations.

EDIT:
From this answer to another question I have understood that “WCF will check that app.config [maxConcurrentSessions] is consistent with attributes [SessionMode.NotAllowed] and refuse to start the service if they are not consistent”.
When SessionMode.NotAllowed is declared and this disables the use of sessions, shouldn’t WCF then refuse to start the service because of the contradicting configuration with maxConcurrentSessions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:59:02+00:00Added an answer on May 24, 2026 at 1:59 am

    SessionMode.NoAllowed says that the contract must be implemented in a stateless way

    For NetTcp this would prevent the service starting as its inherently sessionful, for WSHttpBinding it will suppress the session

    maxConcurrentSessions will have no effect if you use SessionMode.NotAllowed as there will be no sessions to throttle

    WSHttpBinding uses SecureConversation to support its concept of session if its available. If its not available it will use reliable messaging if its available. If neither are available it cannot support session

    I wrote a blog article about this stuff a while back

    Update in Response to Edit

    Secure conversation and Sessions are not the same thing. Secure Conversation can be used whether or not you have sessions. One way WSHttpBinding supports session is to the use the negotiation of secure conversation to define the session. However, if you say SessionMode.NotAllowed then WCF will simply not have a sessionID and not support session – it doesn’t mean it won’t use secure conversation

    maxConcurrentSessions limits the maximum number of concurrent sessions. If you turn off session then the number of sessions will be 0 and so will always be less than the maximum

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can a class have a Service Contract attribute and its methods Operation Contract. Or
I need an attribute that handles authorization for my controllers. This is for a
I have a service that gets a JPA entity from outside code. In this
According to this on msdn , it tells you to set the Service attribute
If my WCF Service has this attribute: [ServiceBehavior( InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
I have a WCF service that has methods with the PrincipalPermission attribute on them.
I have a service which calls back the client. the interface has this attribute
i created a WCf service with a method that can receive GET requests using
I want to determine the following QoS Attribute of my service: Response Time Reliability
My service communicates with a server that manages accounts. Each Account has a cap

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.