spring - How can I see which Pages a User requests in Grails? -


i use grails application info plugin active sessions as:

scopesinfoservice scopesinfoservice  list<map<string, object>> activesessionsmap = scopesinfoservice.getsessionsinfo() activesessionsmap.each { sessionmap ->             def tmpsession = sessionmap.session } 

how can see page user session has been requested , requesting?

create filter , store current controller , action or request.forwarduri each request in variable called currentlocation or something. when access sessions read that. can creative , store data. not sure proper approach anyway.

storelocation(controller: '*', action: '*') {             before = {                 session.currentlocation = "$controllername/$actionname"             }         } 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -