title: Max age is not working in Play Framework 2.2.0 (Scala)
body: <p>I am using Play Framework 2.2.0 with Scala. I want to expire the session after a fix time, so i put this code in conf/application.conf</p>
  
  <pre><code>application.session.maxAge=1h
  </code></pre>
  
  <p>but it is not working. Is there any way to set a maximum age for session in application.conf or by overriding any  method from controller.If i want to expire session after 50 seconds would i have to code like this </p>
  
  <pre><code>application.session.maxAge=50sec
  </code></pre>
  
  <p>Thanks for replies</p>