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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -