session| solve |session recently do web site backstage, after landing found that the session will be lost when refreshing the page, after a few seconds will naturally be lost, after the data found can be resolved:
1. Open the Web.config file and set the following:
<!--session state settings
By default, ASP.net uses cookies to identify which requests belong to a specific session.
If the Cookie is not available, you can track the session by adding the session identifier to the URL.
To disable cookies, set sessionstate cookieless= "true".
-->
<sessionstate
Mode= "StateServer"//is modified here as "StateServer"
Stateconnectionstring= "tcpip=127.0.0.1:42424"
sqlconnectionstring= "Data source=127.0.0.1; Trusted_connection=yes "
Cookieless= "false"
timeout= "30"
/>
2. Open the Control Panel-management tool-service to find the ASP.net State service, and start it.
So later refresh the page will not lose session, haha!