Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL Rewrite

 
ram ragu
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
When we do URL rewrite as shown below
pw.println("<a href=\""
+ res.encodeURL("/servlet/Hello")
+ "\"> View Servlet</a><br>");
are we supposed to see the SessionID on the URL? ( when we view the source )
Thanks
Ram
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3885
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but only if the cookies are disabled by the client. Otherwise, this method does not do anything.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!