Let's say there is a int x = 10
in the session, when I click a link, I change it's value to x++
in the link click event.
Is there a way, in which, if I hit the browser back button, the session will be restored back to the previous version. Meaning, in this case, x
's value will be 10, which is the initial value.