2010-09-12 26 views

回答

0

在較早版本的servlet規範中,有一種獲取所有會話的方法,但是它被作爲安全風險去除。您可以在web.xml中註冊HttpSessionListener的實現(運行grails install-templates並編輯src/templates/war/web.xml來註冊它)並以這種方式跟蹤會話。

App-Info插件具有此功能(其中包括)。默認情況下它是禁用的,但通過在grails-app/conf/Config.groovy中添加grails.plugins.appinfo.useContextListener = true可以輕鬆啓用該功能

相關問題