spring - Is it possible to get a List of all active Sessions? -
when being in grails action can access httpsession session.
is possible list of active sessions?
you can use getsessionsinfo() method of scopesinfoservice service of application info plugin.
first install plugin(in buildconfig)
compile ":app-info:1.0.2"{ excludes 'jquery' } then make entry in config
grails.plugins.appinfo.usecontextlistener = true finally inject service , use getsessionsinfo() method
def scopesinfoservice ... scopesinfoservice.getsessionsinfo() to list of active sessions.
Comments
Post a Comment