• Post Reply Bookmark Topic Watch Topic
  • New Topic

Something abt session and hidden fields ?  RSS feed

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends ,
Can anyone clear me with the following :
"Which one is better the session or the hiden filed mechanism while we transfer the information across the screens ??"
Hope i get a good response.
Thanks ,
Saurabh
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends.
If session synchronization is an issue, then hidden fields, else session.
Also, it will depend on the type and sensitiveness of the data.
Ask yourself the following questions:
- how safe is the data as hidden field value?
- how well can hidden fields carry the data? (ex: if you have a block of text with " and ' characters in it).
- what impact will there be if the data is in the session object and the user uses the site with many windows open? (i.e. tries to add many products from different windows)
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Saurabh Agrawal:
Hello friends ,
Can anyone clear me with the following :
"Which one is better the session or the hiden filed mechanism while we transfer the information across the screens ??"
Hope i get a good response.
Thanks ,
Saurabh

Even though this article is five years old, it should adequately address your question.
Kyle
[ May 12, 2004: Message edited by: Kyle Brown ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!