grailssession-timeout

How to add session expire time - Grails 4.x


I've added this part in application.yml but it doesn't work.

server:
   session:
      timeout: 3600  #seconds

Solution

  • You have to add

    server:
        servlet:
            session:
                timeout: 3600
    

    Instead of

    server:
       session:
          timeout: 3600  #seconds