Asp+|cookie|cookie by default, the session object of asp+ still relies on cookies, but
Config.web file settings, you can make the session object no longer dependent on the browser
Cookies (that is, even if the browser's cookie function is turned off, session
object is still valid), the setting method is to join in the Config.web
<sessionstate cookieless= "true"/> as follows:
<configuration>
<sessionstate cookie= "true"/>
</configuration>
Note: The file should be placed under the IIS application
After adding <sessionstate cookieless= "true"/> Settings, browse
*.aspx when browsing, turn off cookies: The results are as follows, to prove the session
The object does not depend on the browser's cookie:
The test process turns off the browser's cookie feature
The first time you browse the Web page, date=0
At the end of the page, date=100
When you press the re-enter page, date=100
At the end of the page, date=200
When you press the re-enter page, date=200
At the end of the page, date=300