This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regd Sess Mgmt: How do i find out if the browser has cookies disables?  RSS feed

 
srini E
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question in detail:
When a user sends a request for the first time, how would i know if the browser has disables cookies option?
How would i know whether i should use url re-writing or cookies for session management? My confusion is how to determine which option to use for session management.
Probably i'm missing something very obvious. Dear ranchers, help me in discovering what i'm missing or direct me where i can find answers.
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet container should handle this for you automatically.

You just have to call encodeUrl() for each url in your page and the session id will be appended as necessary.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!