setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]) Indicates that the cookie should only be transmitted over a secure HTTPS connection. When set to 1, the cookie will only be set if a secure connection exists. The default is 0. 
0 or 1查手册