This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How about Servlet security?

 
Pcxhev Qydzb
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How secure the Servlet is?
If I put some data into the session, then could the user change/hack it at client side? I mean not someone else to hack the data but the user himself. If the user intend to do that, he can disturb/modify other's data. For example, I store the record id which is belong to the logined user in the session, If he has the ability to change it to another's id and do some modification, the innocent data will be corrupted.
Any replies are welcome!
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The actual HttpSession object is stored in memory (or possibly in a database) in the Web Container. At no time is the contents of the HttpSession stored or made available to the client. The only thing that is stored on the client is the session id.
 
Pcxhev Qydzb
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I see. It's great! Thank you very much! I can go back to busy work and forget this.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pcxhev Qydzb",
Please read the JavaRanch naming convention at http://www.javaranch.com/name.jsp.
Please edit your profile and select a new name which meets the requirements.
If you are going to sign your posts as 'Wallace Zou', we will require you to change your display name to this as well. If you don't, you run the (very real) risk of having your account locked.
Thanks.
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic