0

i need to use session only on a few views in my MVC project. These views are not visible to web crawlers. I use cookieless="AutoDetect" so web-crawles(and users with cookies disabled) gets ugly url from IIS( ie "(S(hkec1uq1onbt0xafixedjc45))/en/home.mvc") even on pages that doesn't need session.

Is there any way how to enable session only on specific pages and disable on others?

Thank you.

Feryt
  • 2,262
  • 2
  • 22
  • 32

1 Answers1

0

Disabling session is not exactly prefered "out of the box" for ASP.NET MVC. I think this post will get you going down the right path.

Community
  • 1
  • 1
RailRhoad
  • 2,128
  • 2
  • 25
  • 39