• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Will the container take care with session tracking

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers.
As you know guys, in session tracking we may use cookies or url rewritten.
and in JSP and Servlets we can use session object to store our information.
in java web application, should we care if the client disabling cookies ( I mean, will the container
take care with this situation?)
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It'll take care only if you use endodeURL of HttpServletResponse interface:
String encodeURL(String url)
String encodeRedirectURL(String url) // to be used for sendRedirect API.
Example:
response.encodeURL("/servlet/AnyServlet");
You don't have to worry whether the browser has disable cookies or not. This will save you
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...depending on the server.
Some application servers (eg WebSphere) require you to explicitly allow session tracking by URL rewriting in the web context settings.
reply
    Bookmark Topic Watch Topic
  • New Topic