• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How about Servlet security?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
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
"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
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic