ServiceStack/ServiceStack — pull request #77 by brainless83 (2012-01-26 22:14:12+00:00)
Title: Mono Cookie Issue

When running a ServiceStack application under mono I experienced that some clients do not process the cookies set at the server side. This is due the fact, the Set-Cookie header produced when running the web application in IIS differs from the one produced by the mono environment.

Example output

* Mono: Set-Cookie: ss-id=Swla39ZX9UCU12MeaABEsw==; domain=; path=/
* IIS: Set-Cookie: ss-id=0yeNOe2sEU6FLQjfxTcDow==; path=/

The reason for this can be found in the mono sources.

* HttpCookie.cs: GetCookieHeaderValue
* Cookie.cs: Domain is string.Empty by default

The solution has been tested under linux running apache2 + modmono + mono 2.10.5