[Mono-list] HttpOnly cookies flag supported?

"Andrés G. Aragoneses" knocte at gmail.com
Fri Oct 4 17:42:56 UTC 2013


If you grep for HttpOnlyCookies, you get some things which I interpret 
as (if I'm not missing anything) the property being there (to not crash 
if someone sets it), but no source code using it, so I guess you'll need 
to create a pull request if you want it implemented.

For the record, the grep output I got:

knocte at ulises:~/Documents/Code/mono$ grep HttpOnlyCookies -ri ./mcs/class/
./mcs/class/System.Web/Documentation/en/System.Web.Configuration/HttpCookiesSection.xml: 
    <Member MemberName="HttpOnlyCookies">
./mcs/class/System.Web/Documentation/en/System.Web.Configuration/HttpCookiesSection.xml: 
      <MemberSignature Language="C#" Value="public bool HttpOnlyCookies 
{ set; get; }" />
./mcs/class/System.Web/Documentation/en/System.Web.Configuration/HttpCookiesSection.xml: 
 
<AttributeName>System.Configuration.ConfigurationProperty("httpOnlyCookies", 
DefaultValue="False")</AttributeName>
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
static ConfigurationProperty httpOnlyCookiesProp;
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
httpOnlyCookiesProp = new ConfigurationProperty ("httpOnlyCookies", 
typeof (bool), false);
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
properties.Add (httpOnlyCookiesProp);
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
[ConfigurationProperty ("httpOnlyCookies", DefaultValue = "False")]
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
public bool HttpOnlyCookies {
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
get { return (bool) base [httpOnlyCookiesProp];}
./mcs/class/System.Web/System.Web.Configuration_2.0/HttpCookiesSection.cs: 
set { base[httpOnlyCookiesProp] = value; }


On 04/10/13 19:35, James Wright wrote:
> 		public  static  HttpCookie  GetAuthCookie  (string  userName,  bool  createPersistentCookie,  string  strCookiePath)




More information about the Mono-list mailing list