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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -