title: Cookies getting deleted from browser on exit (Spring Security 3.1)?
body: <p>I am using Spring Security 3.1 to handle login authentication, session timeouts and maximum sessions.</p>
  
  <p>Also I am deleting cookies only on logout.</p>
  
  <pre><code>&lt;logout delete-cookies="JSESSIONID" logout-success-url='logout page' /&gt;
  </code></pre>
  
  <p>Also I have set maximum sessions to 1 as of now for testing.
  When I open my webpage in browser, it stores jsession id in cookie but the problem starts when I exit and reopen my browser. At this time I cannot find any cookies in the browser, they get deleted that is why I am not getting redirected to welcome page(page after login).</p>
  
  <p>But when I login again, it shows an error message that I am printing:-number of sessions exceeded.</p>
  
  <p>This possibly means that session remains alive on server side but it gets deleted from the cookie on client side due to which I neither see the welcome page nor am able to login on the login page.</p>
  
  <p>What else I need to do so that cookies remain there in the browser till the session times out? I have set session timeout to 10 days</p>