aspose file tools*
The moose likes Servlets and the fly likes How about Servlet security? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How about Servlet security?" Watch "How about Servlet security?" New topic
Author

How about Servlet security?

Pcxhev Qydzb
Greenhorn

Joined: Jun 26, 2002
Posts: 7
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!


Wallace Zou<br />PGP: <a href="http://www.geocities.com/a13519" target="_blank" rel="nofollow">http://www.geocities.com/a13519</a>
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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

Joined: Jun 26, 2002
Posts: 7
Oh, I see. It's great! Thank you very much! I can go back to busy work and forget this.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How about Servlet security?