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)
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.
Even though this article is five years old, it should adequately address your question.
[ May 12, 2004: Message edited by: Kyle Brown ]