Retrieving JEE session information

Given that I have a JEE session id (jsessionid) is there any interface to
get information on the session, like when it was started, active vs
inactive, that sort of info? It’s probably handled by the servlet
container, but at some point the Lucee server has to know at least when it
times-out, correct?

Yes there is a robust API for managing sessions in Java.

http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpSession.html

is the
HttpSession…

http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpSessionListener.html--
Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Tue, Jan 26, 2016 at 1:56 PM, Jonathan Brookins <@Jonathan_Brookins> wrote:

Given that I have a JEE session id (jsessionid) is there any interface to
get information on the session, like when it was started, active vs
inactive, that sort of info? It’s probably handled by the servlet
container, but at some point the Lucee server has to know at least when it
times-out, correct?


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/c2f35856-d890-47f7-bd4d-5978a5d6c4b7%40googlegroups.com
https://groups.google.com/d/msgid/lucee/c2f35856-d890-47f7-bd4d-5978a5d6c4b7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Thanks, Pete, but what I am looking for is a way to get the session info
outside of using page context using only the session id. I’m trying to
build a page that will show me details on current server sessions by
application name. Here is what I have so far:

for ( config in getPageContext().getConfig().getConfigServer(‘mypassword’).
getConfigWebs()) {
context = config.getFactory().getScopeContext();

//dump(config.getServletContext().getServletRegistrations());

cf_session_scopes = context.getAllCFSessionScopes();

cf_session_scopes_active = cf_session_scopes.filter(function(scope) {
return !cf_session_scopes[scope].isEmpty();
});

dump(cf_session_scopes_active);
}On Tuesday, January 26, 2016 at 2:02:31 PM UTC-5, Pete Freitag wrote:

Yes there is a robust API for managing sessions in Java.

HttpSession (Java(TM) EE 7 Specification APIs)

is the
HttpSession…

HttpSessionListener (Java(TM) EE 7 Specification APIs)


Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Tue, Jan 26, 2016 at 1:56 PM, Jonathan Brookins <jon.br...@gmail.com <javascript:>> wrote:

Given that I have a JEE session id (jsessionid) is there any interface to
get information on the session, like when it was started, active vs
inactive, that sort of info? It’s probably handled by the servlet
container, but at some point the Lucee server has to know at least when it
times-out, correct?


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/c2f35856-d890-47f7-bd4d-5978a5d6c4b7%40googlegroups.com
https://groups.google.com/d/msgid/lucee/c2f35856-d890-47f7-bd4d-5978a5d6c4b7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.