Organizational Research By

Surprising Reserch Topic

Question:How to monitor HTTP request to check JSESSIONID

asked Sep 13, 2013 in JSP by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

1 Answer

0 votes


You can check value of JSESSIONID coming in as cookie by monitoring HTTP request. If you are running Tomcat Server in NetBeans IDE in your development environment than you can use HTTP Server Monitor to check http requests. You just need to enable it while starting Tomcat Server form Netbeans. After than with each request you can see all details like request headers, session, cookies etc in HTTP Server monitor screen. If you look on JSESSIONID cookie it will look like:
cookie  JSESSIONID=1A530637289A03B07199A44E8D531427
You can also enable http request and response in Client side by using tools like ethereal or Wireshark. This tool can monitor all http traffic from and to your machine and by looking on request data you can see JSESSIONID cookie and its value.
That's all on What is JSESSIONID and How JSESSIONID is created inside J2EE application. We have seen that both Servlet and JSP can be responsible for Session creation but its done by Container. you can retrieve value of SessionID which is represented by JSESSIONID cookie when you call request.getSession(). Session management in web applications are complex topic especially when it comes to clustering and distributed session. On the other hand JSESSIONID is one of those basics which as J2EE web application developer you should be aware of.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013