| setSecure() | ใช้กำหนดว่า จะใช้ความปลอดภัยในการส่ง Cookie หรือไม่ |
|---|
method:setSecure ( boolean );
return type:void
content:ใช้กำหนดว่า จะใช้ความปลอดภัยในการส่ง Cookie หรือไม่ (true = ใช้) คือจะส่ง Cookie ไปยัง Protocol ที่ปลอดภัยเท่านั้น เช่น HTTPS หรือ SSL
example:Cookie cookie = new Cookie ( “username”, “bamboo” ); cookie.setSecure ( true ) ;