| |||||
HttpCookie.Secure PropertySystem.Web Namespace HttpCookie Class Sets or retrieves a value indicating whether to transmit the cookie securely ( that is, over HTTPS only ). [ VB ] Public Property Secure As Boolean [ C# ] public bool Secure {get; set;} [ C++ ] public: __property bool get_Secure ( ); public: __property void set_Secure ( bool ); [ JScript ] public function get Secure ( ) : Boolean; public function set Secure ( Boolean ); Property Valuetrue to transmit the cookie securely; otherwise, false. The default value is false. ExampleThe following example takes action if the cookie is set to transmit securely. [ VB ] If myCookie.Secure Then ' ... do whatever here End If [ C# ] if ( myCookie.Secure ) { // ... do whatever here } See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme