MVC widget in hybrid mode can't set cookie?
Hi,
I have a page that is in hybrid mode. I have an MVC widget on that page that in its controller action is calling:
HttpContext.Response.Cookies.Add(
new
HttpCookie(cookieName, cookieValue));
It then returns a ViewResult.
But when viewing the response in Fiddler there is no Set-Cookie header creating this cookie.
Is this a limitation of Hybrid mode? MVC widgets can't create cookies? Or am I doing it all wrong?
Thanks!
Hi,
This problem is most likely caused by an issue in 7.0 - in mvc, the applicationinstance and cookies were not copied. This was resolved in 7.0.5110 as noted in the release notes:http://www.sitefinity.com/developer-network/forums/general-discussions-/internal-hotfix-builds#8aEWwwrvu0OxdzzBKFw8Ag
Please, try upgrading to this version.
Regards,
Atanas Valchev
Telerik