TSL语言基础 > Object TSL > TSL内置对象使用大全 > TWebResponse对象 > TWebResponse的方法

SetCookieField    

简述

设置Cookie字段。
定义
SetCookieField(Values:TStrings;domain;path:String;expires:TDateTime;secure:Boolean);
参数
名称类型说明
ValuesTStringsTStrings类型,Cookie的内容,可为多个。
DomainString字符串类型,Cookie的有效域。
PathString字符串类型,有效Path
ExpiresTDateTime时间类型,过期时间。
SecureBooleanBoolean类型,是否安全Cookie,如果是则仅当HTTPS链接被支持。
相关