title: How do I disable Sessions in Play Framework completely?
body: <p>I am aware of <a href="https://stackoverflow.com/questions/4429551/playframework-how-can-i-disable-session-cookies-on-specific-action">this question</a> where the OP wanted to disable session handling for <em>a certain</em> controller action. Since I am working on a completely stateless app, I want to completely disable all session handling in the complete app though. Filtering every request to overwrite an attribute of the response for this feels kind of overkill. Especially since all the preparations like generating a session ID, <a href="https://www.playframework.com/documentation/2.4.x/ScalaSessionFlash#How-it-is-different-in-Play" rel="nofollow noreferrer">signing the session data</a>, and whatever else Play is doing, are still carried out.</p>
  
  <p>Is there any other—less expensive—way of preventing the Play framework from creating a session in the first place?</p>