Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session tracking in jsp  RSS feed

 
kedar parundekar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How session tracking is posssible in jsp?
 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
During the first request a browser makes to the servlet container, an instance of HttpSession is created in the servlet container and managed by its session manager, to corespond to the user's session.
If the browser has cookies enabled, the servlet container attempts to set a cookie that is sent on subsequent requests to associate the request with the existing session.
When the browser has cookies disabled, sometimes the servlet contain can re associate the request to the session with the use of url rewriting, where the session identifier is post pended as a url fragment to relative links within the application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!