Hidden Form Fields

Hidden Form Fields :

<input type=”hidden” name=”sessionid” value=”129002″>
Hidden Form Fields like the above can be inserted in the webpages and information can be sent to the server for session tracking. These fields are not visible directly to the user, but can be viewed using “view source” option from the browsers.
This type doesn’t need any special configuration from the browser or server. This cannot be used for session tracking when the conversation includes static resources like html pages.
It will always work whether cookie is disabled or not. It is maintained at server side. Extra form submission is required on each page.
Example :
index.html

Login.java


Servlet2.java

web.xml

 

Leave a Reply

Your email address will not be published. Required fields are marked *