Installation and deployment
Version 7.x > Installation and deployment > Can I turn off session state? View modes: 
User avatar
Member
Member
matt.barry-stockhouse - 4/3/2013 11:58:10 AM
   
Can I turn off session state?
I'm looking at deploying Kentico 7 in a web farm scenario. My team has been careful to avoid using session state during development. Ideally, I would like to turn off ASP.NET session state in the web.config file. The alternatives would be to set up sticky sessions on the load balancer, add a session server, or move session into our SQL Server database. None of these options are really appealing to me.

So here's my question:

Does Kentico 7 require ASP.NET session state in order to function properly?





User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/3/2013 4:12:17 PM
   
RE:Can I turn off session state?
Hi,

Kentico works fine in a sticky environment, this should be fine. Also, Kentico is a .Net application, so you can use the sessions as you want - including storing the session on the SQL Server. There are no issues with it.

Best regards,
Juraj Ondrus

User avatar
Member
Member
matt.barry-stockhouse - 4/3/2013 4:32:27 PM
   
RE:Can I turn off session state?
Does Kentico 7 work with session turned off?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/3/2013 6:13:43 PM
   
RE:Can I turn off session state?
Hi,

You want to turn the session completely off? I would not recommend that since some parts of the system are working with session and also users and other things are used in sessions.

Best regards,
Juraj Ondrus

User avatar
Member
Member
matt.barry-stockhouse - 4/8/2013 4:31:11 PM
   
RE:Can I turn off session state?
Yup. I was hoping to be able to turn it off completely. We don't use session state in any of our application code or custom web parts.

I tried storing session in the SQL Server and it does appear that Kentico is using session internally. So I guess we'll stick with that approach.

Thank you for your help.