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

  • SEARCH
  • Home
  • 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 353421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:49:43+00:00 2026-05-12T11:49:43+00:00

In a previous thread one of the respondents said that using wsHttpBinding used a

  • 0

In a previous thread one of the respondents said that using wsHttpBinding used a session. Since I’m working in a clustered IIS environment, should I disable this? As far as I know, sessions don’t work in a cluster.

If I need to disable this, how do I go about it?

  • 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-12T11:49:43+00:00Added an answer on May 12, 2026 at 11:49 am

    That probably was me 🙂 By default, your service and the binding used will determine if a session comes into play or not.

    If you don’t do anything, and use wsHttpBinding, you’ll have a session. If you want to avoid that, you should:

    • switch to another protocol/binding where appropriate
    • decorate your service contracts with a SessionMode attribute

    If you want to stop a service from ever using a session, you can do so like this:

    [ServiceContract(Namespace="....", SessionMode=SessionMode.NotAllowed)]
    interface IYourSession
    {
    ....
    }
    

    and you can decorate your service class with the appropriate instance context mode attributes:

    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
    class YourService : IYourService
    {
      ....
    }
    

    With this, you should be pretty much on the safe side and not get any sessions whatsoever.

    Marc

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

Sidebar

Related Questions

Thanks to all that responded to my previous thread. There is still a problem
In previous question of mine, someone had meantioned that using Semaphores were expensive in
Sorry if this was answered in a previous thread, i couldn't find one. I
>My previous thread< I created this one,because I installed WinXP on VMBox and I
This thread is a follow up to my previous one . It's in fact
In one of my Java 6 applications I have a thread that feeds the
This question is related to this previous thread . I followed Tomas's suggestion using
This question is related to a previous one on writing a session timeout handler
An extension of my previous thread here . I'm launching embedded resource applications via
From previous post, I learnt that for there are two ways, at least, to

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.