Brenden Kehren
-
7/10/2013 7:52:58 AM
RE:SQL Server Session State
We don't have the cookie law web part on our site or enforced. Is there a way to set this outside of the web part? I didn't see anything in the documentation. What I did was added the cookie law consent web part to my master page and set to accept all cookies for all 3 areas. I also set it so the messages are not displayed. I reset the application, truncated the session state database table and in less than 5 minutes I have 442 rows and growing by the second. When I shut the website down in IIS, the records stop being created in the session database table. When I access another website I have using the same session database, it creates 1 record per person logging in.
As far as the key you mentioned for session management, that appears to be a security feature and by default wouldn't create another session record because it's using the same session from public user to after a user logs in.
In regards to checking the session ID, it is the same from the time I access the page, to after logging in, and logging out. It seems that there is something running in the background creating these sessions. Because from roughly 5-10 seconds after I restart the application records start pouring into the session database table.
|