2011年12月21日 星期三

session cookie without secure flag set

Cookie Secure Flag 設定:
● PHP
setcookie ("TestCookie", "", time() - 3600, “/", ".example.com", 1);
● JSP
cookie.setSecure(true);
● ASP.NET
cookie.Secure = True;



資料來源
http://www.openfoundry.org/index.php?option=com_content&task=view&id=2354&Itemid=56;isletter=1