Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SessionState & ASP.NET

Status
Not open for further replies.

Komil13

Programmer
Sep 26, 2001
50
US
Hi Guys,

I have a website that is using Session State to store all the session info. Our default.aspx page (homepage) does not have any code that hits the database. However, we discovered that when the SQL Server is not accessable, the site doesn't even come up. We traced it to the web.config file.

Does the <sessionState> tag in the web.config cause a database hit. If so, is there a way to stop that?

Thanks for your help.

KP
 
What is the mode in your sessionState section of your web.config?
Marty
 
That would be why- it's storing your session states in the database. You can change this to InProc to store it in memory on the webserver instead - this should fix the problem, but be careful of other factors - this will greatly increase the amount of web-server resources consumed, for example.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top