I have check-boxes defined in my below function for my JSP page. Now the checkboxValue is the state of the check-boxes defined in the page. On-click of check-boxes the value is set to 'on' 1.e the check box is checked state. I want to save the "on" state of the check-boxes in a browser session or cookie session so that on page refresh the clicked checkboxstates should be maintained or present in the check state only for that session.
Can you please suggest me any approach to achieve this in my below code?
Joined: Sep 19, 2007
Ya I did but not get much idea or clarity for the approach to do this as I haven't implemented the cookie session concepts anytime in past. I was thinking to save the values of my check-box state in cookie and call them in the onbeforeunload event but unfortunately haven't used this function too before.
Can you please suggest some code snippets in this context that can help me? The change I want to do here is on page refresh the checkbox state(checked state) should be maintained even if we navigate to other page or refresh the browser in that particular browser session.