title: WCF Session Timeout
body: <p>I want to set a session timeout of 30 seconds.</p>
  
  <p>To do so I wrote:</p>
  
  <pre><code>&lt;wsHttpBinding&gt;
      &lt;binding name="ServicesBindings"&gt;
        &lt;security mode="Message"&gt;
          &lt;message clientCredentialType="Certificate"/&gt;
        &lt;/security&gt;
        &lt;reliableSession enabled="true" inactivityTimeout="00:00:30"/&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  </code></pre>
  
  <p>But it don't work!</p>
  
  <p>If I set in this way:</p>
  
  <pre><code>&lt;wsHttpBinding&gt;
      &lt;binding name="ServicesBindings" receiveTimeout="00:00:30"&gt;
        &lt;security mode="Message"&gt;
          &lt;message clientCredentialType="Certificate"/&gt;
        &lt;/security&gt;
        &lt;reliableSession enabled="true"/&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  </code></pre>
  
  <p>it's all correct.</p>
  
  <p>Can someone explain this to me?</p>
  
  <p>Thanks,</p>
  
  <p>Alberto</p>