How about this then:

    override val maxAge = Play.maybeApplication.flatMap({
      c => 
        Duration(
          c.configuration.getMilliseconds("session.maxAge").getOrElse(60000L), 
          MILLISECONDS
        ).toSeconds
    })