I've added this part in application.yml
but it doesn't work.
server:
session:
timeout: 3600 #seconds
You have to add
server:
servlet:
session:
timeout: 3600
Instead of
server:
session:
timeout: 3600 #seconds