title: How to increase Selenium grid session timeout?
body: <p>While running my test, I need to have long delays (~40 seconds).</p>
  
  <p>And I see, that Selenium session gets deleted during that time.</p>
  
  <p>Please help: How can I configure session timeout to increase?</p>
  
  <p>Here what I see in less, that 30 secs, after delay started in the Selenium node log:</p>
  
  <blockquote>
    <p>INFO org.openqa.selenium.remote.server.DriverServlet - Session
    7f5fffec-4882-4c4c-b091-c780c66d379d deleted due to client timeout</p>
  </blockquote>
  
  <p>And after 40 seconds sleep, I'm getting this exception in my code:</p>
  
  <blockquote>
    <p>org.openqa.selenium.remote.SessionNotFoundException</p>
  </blockquote>
  
  <p>I tried to increase all possible timeouts.
  Here is how I start hub:</p>
  
  <pre><code>java -jar selenium-server-standalone.jar -role hub 
  -hubConfig selenium_hub.json 
  -nodeTimeout 61 
  -remoteControlPollingIntervalInSeconds 180 
  -sessionMaxIdleTimeInSeconds 240 
  -newSessionMaxWaitTimeInSeconds 250 
  -timeout 59
  </code></pre>
  
  <p>And here is selenium_hub.json:</p>
  
  <pre><code>{
    "host": null,
    "port": 4444,
    "newSessionWaitTimeout": -1,
    "servlets": [],
    "prioritizer":  null,
    "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
    "throwOnCapabilityNotPresent": true,
    "nodePolling": 5000,
    "cleanUpCycle": 5000,
    "timeout": 60000,
    "browserTimeout": 60000,
    "maxSession": 5,
    "jettyMaxThreads": -1
  }
  </code></pre>
  
  <p>No any timeouts configured on the nodes.
  Here is what I see in my Grid console:</p>
  
  <pre><code>browserTimeout : 60000
  capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
  cleanUpCycle : 5000
  host : null
  hubConfig : /usr/local/selenium/config/selenium_hub.json
  jettyMaxThreads : -1
  maxSession : 5
  newSessionMaxWaitTimeInSeconds : 250
  newSessionWaitTimeout : -1
  nodePolling : 5000
  nodeTimeout : 61
  port : 4444
  prioritizer : null
  remoteControlPollingIntervalInSeconds : 180
  role : hub
  servlets : []
  sessionMaxIdleTimeInSeconds : 240
  throwOnCapabilityNotPresent : true
  timeout : 59000
  </code></pre>
  
  <p>I'm using Selenium 2.45</p>