I have a requirement to disable session in one of the page in my Sitecore (8.2) MVC application. This is because, prevent interactions from recording and creating session objects which is then stored in mongo db. I see someways to disable session using web.config, not sure it will serve my requirement (Haven't tested yet).

<location path="mypage">
      <pages enableSessionState="false" />

Information I'm looking for is, is there any recommended way of handling it using inbuilt features of sitecore?

1 Answer 1


You dont need to disable session to not store a page in Mongo/xDB. Just disable it in the content editor.

Analyze > Attributes > Disable Analytics for this page

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.