You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chetan Chheda <ch...@yahoo.com> on 2009/06/01 17:24:52 UTC
Re: User tracking/monitoring
Thanks Tim and Chuck.
Tim,
Is this something a novice programmer like me can add to our Footer.jsp file? Can you add your recommendation to a code snippet , I would really appreciate it.
Chuck,
Can you tell me more about 2? How would the sessionId be displayed in the page with that method? Can you demonstrate that to me with a small example?
3 wont work as most of the users are business users and designers who are not that savvy.
Thank you so much!
Chetan
________________________________
From: "Caldarale, Charles R" <Ch...@unisys.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Friday, May 29, 2009 1:59:01 PM
Subject: RE: User tracking/monitoring
> From: Chetan Chheda [mailto:chetan_chheda@yahoo.com]
> Subject: User tracking/monitoring
>
> Is there anyway we can add the tomcat sessionID to their page so
> that they can tell us where they are?
Besides adding it to some common component of each page of the web site as Tim suggested, you could do any of the following:
1) Disable cookies and use URL rewriting, forcing the session ID into the URL (can't really recommend that).
2) Add a filter or valve to append the session ID to each response.
3) Have the users look in the cookie cache of the browser when they have a problem.
Tim's suggestion or perhaps #3 would seem to be the simplest.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: User tracking/monitoring
Posted by Tim Funk <fu...@apache.org>.
Already answered in this thread here:
http://www.nabble.com/Re%3A-User-tracking-monitoring-p23792941.html
-Tim
Chetan Chheda wrote:
> I had to add
> <%= request.getSession().getId()%>
> for it to display the sessionId.
>
> Tim,
>
> Can you elaborate on what the side effects would be to display the full sessionId as compared to just the session route?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: User tracking/monitoring
Posted by Chetan Chheda <ch...@yahoo.com>.
I had to add
<%= request.getSession().getId()%>
for it to display the sessionId.
Tim,
Can you elaborate on what the side effects would be to display the full sessionId as compared to just the session route?
Chetan
________________________________
From: Tim Funk <fu...@apache.org>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Monday, June 1, 2009 11:54:26 AM
Subject: Re: User tracking/monitoring
The snippet I post was the snippet. (if you are using jsp) But it can have security side effects. A safer snippet might be this:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
${(fn:split(pageContext.session.id, '.')[fn:length(fn:split(pageContext.session.id, '.'))-1])}
Which splits the session id apart by '.' and typically - the last part of the session is the jvmroute (aka the server which served the request)
Anyone with knowledge of JSTL should have no problem incorporating the above snippet. If you have trouble with the above - seek a trusted consultant for help. The money will be well spent.
-Tim
Chetan Chheda wrote:
> Thanks Tim and Chuck.
> Tim,
> Is this something a novice programmer like me can add to our Footer.jsp file? Can you add your recommendation to a code snippet , I would really appreciate it.
> Chuck,
> Can you tell me more about 2? How would the sessionId be displayed in the page with that method? Can you demonstrate that to me with a small example?
> 3 wont work as most of the users are business users and designers who are not that savvy.
> Thank you so much! Chetan
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: User tracking/monitoring
Posted by Tim Funk <fu...@apache.org>.
The snippet I post was the snippet. (if you are using jsp) But it can
have security side effects. A safer snippet might be this:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
${(fn:split(pageContext.session.id,
'.')[fn:length(fn:split(pageContext.session.id, '.'))-1])}
Which splits the session id apart by '.' and typically - the last part
of the session is the jvmroute (aka the server which served the request)
Anyone with knowledge of JSTL should have no problem incorporating the
above snippet. If you have trouble with the above - seek a trusted
consultant for help. The money will be well spent.
-Tim
Chetan Chheda wrote:
> Thanks Tim and Chuck.
>
> Tim,
>
> Is this something a novice programmer like me can add to our Footer.jsp file? Can you add your recommendation to a code snippet , I would really appreciate it.
>
> Chuck,
>
> Can you tell me more about 2? How would the sessionId be displayed in the page with that method? Can you demonstrate that to me with a small example?
>
> 3 wont work as most of the users are business users and designers who are not that savvy.
>
> Thank you so much!
> Chetan
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org