Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access the value of jsessionid when using url rewriting??

 
chandan kumar mitwaa
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using url rewriting how should one access the value for 'jsesssionid'??
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it does not matter where the session ID comes from, as long as it comes from somewhere.

You do it the usual way -> request.getSession().getId().

However, if it is important to you, you can check whether or not the session ID came from the URL or cookie using

request.isRequestedSessionIdFromURL() or request.isRequestedSessionIdFromCookie() ..

Hope that helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic