In grails, how do I get a reference to all current sessions?

前端 未结 2 548
闹比i
闹比i 2021-01-18 05:51

I\'d like to list all current sessions in an Admin Controller in grails. What\'s the easiest way to get a reference to e.g. a Collection of sessions from the controller?

2条回答
  •  执念已碎
    2021-01-18 06:01

    This is a feature (disabled by default but easily enabled by setting grails.plugins.appinfo.useContextListener = true in Config.groovy) of the App-Info plugin: http://grails.org/plugin/app-info

提交回复
热议问题