TSL语言基础
>
Object TSL
>
TSL内置对象使用大全
>
TWebResponse对象
>
TWebResponse的方法
SetCookieField
复制链接
简述
设置Cookie字段。
定义
SetCookieField(Values:TStrings;domain;path:String;expires:TDateTime;secure:Boolean);
参数
名称
类型
说明
Values
TStrings
TStrings类型,Cookie的内容,可为多个。
Domain
String
字符串类型,Cookie的有效域。
Path
String
字符串类型,有效Path
Expires
TDateTime
时间类型,过期时间。
Secure
Boolean
Boolean类型,是否安全Cookie,如果是则仅当HTTPS链接被支持。
相关
GetCustomHeader
SendRedirect
SendResponse
SendStream
Sent
SetCookieField
SetCustomHeader