Add portal support
[mono.git] / mcs / class / System.Web / System.Web / HttpCookie.cs
index f7e61e084fd9992a703d3ab6276ab479489b31ce..1010cf098eaed0df907c3e68889e240eac20b158 100644 (file)
@@ -42,6 +42,10 @@ namespace System.Web {
        
        // CAS - no InheritanceDemand here as the class is sealed
        [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+#if TARGET_J2EE
+       // Cookies must be serializable to be saved in the session for J2EE portal
+       [Serializable]
+#endif
        public sealed class HttpCookie {
 
                string path = "/";