Sessionless MonoRail Controllers

I saw this post on the Castle Users mailing list and thought it was interesting and I wanted to post it.

By default, MonoRail controllers assume that ASP.NET session state is enabled.  If you disable ASP.NET's session state inside web.config, you'll get an exception when MonoRail tries to process the request.  What you need to do in this situation is to add a ControllerDetails attribute to your controller and set "Sessionless = true".  Thanks to Roelof Blom for posting a quick solution.

No Comments