To increase or decrease the default session time-out in grails:
In your project folder, first execute (if you haven't execute this yet):
grails install-templates
After this, you'll be able to see your web.xml in [project folder]/src/templates/war/
Add / modify the code in web.xml
I place the snippet above after my servlet-mapping. The value "60" is in minutes.
In your project folder, first execute (if you haven't execute this yet):
grails install-templates
After this, you'll be able to see your web.xml in [project folder]/src/templates/war/
Add / modify the code in web.xml
<session-config> <session-timeout>60</session-timeout> </session-config>
I place the snippet above after my servlet-mapping. The value "60" is in minutes.
Tested on Grails version 2.03. Enjoy!
Above code is too much useful.
ReplyDelete