2

I am developing a facebook similar wall, and im a bit corious, is it safe to use a hidden input storing the stream id?

So in my db for comments i have 4 fields, the comment id, stream id, user id, and comment text stream id is for to locate which wall post has comment, and i would store this in a hidden input for the form.

is it safe? or i should think a nother idea?

Thank you

Side
  • 1,753
  • 9
  • 35
  • 64

2 Answers2

3

Well, you have to identify somehow what wall user post at, so you have to pass that parameter either in GET parameters or other way (using POST at your case). I don't think anything is wrong with this. If someone can to a damage knowing that data then you have a security problem in your app.

Level of security by passing that data through hidden input or through GET parameter is the same.

Krešimir Lukin
  • 399
  • 1
  • 7
0

The safest way I can think of solving this problem is by using a session store if possible, unless I'm misunderstanding something.

Lucas Green
  • 3,951
  • 22
  • 27