3

I want to get the JSESSIONID of Tomcat on the client side. Is that possible? If yes, how?

Thanks

Tim S. Van Haren
  • 8,861
  • 2
  • 30
  • 34
Tushar Ahirrao
  • 12,669
  • 17
  • 64
  • 96
  • 3
    This is the 2nd time that you asked a question which in real world should never be practiced. Honestly said, this all smells. What is it, the problem for which you think that getting the `HttpSession` associated with JSESSONID in server side and getting the JSESSIONID value in client side is "the" solution? Elaborate about this in a new question, you'll get answers how to do it the right way. – BalusC Jun 22 '10 at 12:21

2 Answers2

5

It depend on how is the JSESSIONID transmitted:

However I don't see much of a reason to do so.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
0

You need to give a ajax call to your server code like Spring controller or Servlets and get the response string as JSESSIONID and then store it in the javascript, only after your DOM is fully loaded .

Human Being
  • 8,269
  • 28
  • 93
  • 136