setting session timeout in Grails Spring Security Core Plugin

前端 未结 1 1259
别跟我提以往
别跟我提以往 2021-02-06 01:05

Despite searching the plugin docs and general searching, I can\'t find an answer to this one. The closest I\'ve gotten is the end of this page, which seems to describe setting

相关标签:
1条回答
  • 2021-02-06 01:35

    The plugin doesn't have settings for session duration - it just uses whatever is configured for the whole app. You can do this by editing web.xml (run grails install-templates if you haven't yet) and edit src/templates/war/web.xml. Add

    <session-config>
       <session-timeout>30</session-timeout>
    </session-config>
    

    before the welcome-file-list element and set the session-timeout value to whatever number of minutes you want it to be.

    0 讨论(0)
提交回复
热议问题