DEMOS / Session State and Page State

The first counter to the right is stored in session. If you reload the current page, or open a new tab in your browser and navigate to this window, the count is persisted. (It will disappear once the session times out.)

The second counter is stored in page state. It exists only for postbacks on the current page, and its value disappears when you close the page.

View Module Source

Counter stored in session state:

Counter stored in page state:

Copyright © 2008-2024 Nitrogen Web Framework. Released under the MIT License.