Imported Upstream version 4.8.0.309

Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-11-10 13:04:39 +00:00
parent ee1447783b
commit 94b2861243
4912 changed files with 390737 additions and 49310 deletions

View File

@@ -3,6 +3,7 @@
//
// Author:
// Chris Toshok (toshok@novell.com)
// Katharina Bogad (bogad@cs.tum.edu)
//
//
@@ -31,6 +32,7 @@
using System.Text;
using System.Collections.Specialized;
using System.Security.Permissions;
using System.Web.Configuration;
namespace System.Web
{
@@ -66,6 +68,17 @@ namespace System.Web
this.name = name;
values = new CookieNVC();
Value = "";
HttpCookiesSection cookieConfig = (HttpCookiesSection) WebConfigurationManager.GetSection ("system.web/httpCookies");
if(!string.IsNullOrWhiteSpace(cookieConfig.Domain))
domain = cookieConfig.Domain;
if(cookieConfig.HttpOnlyCookies)
flags |= CookieFlags.HttpOnly;
if(cookieConfig.RequireSSL)
flags |= CookieFlags.Secure;
}
public HttpCookie (string name, string value)