You've already forked linux-packaging-mono
Imported Upstream version 4.8.0.309
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
This commit is contained in:
parent
ee1447783b
commit
94b2861243
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user