我想问下怎样将cookies有效期设为 10分钟

coolzdp 2004-08-07 04:09:19
response.Cookies("xxxx").expires=
...全文
387 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
fashchina 2004-08-11
  • 打赏
  • 举报
回复
up
lv_kevin 2004-08-11
  • 打赏
  • 举报
回复
楼上说的是对的,
二楼把now搞成date了,把时间给省去了,只有日期了
ecobin 2004-08-11
  • 打赏
  • 举报
回复
response.cookies("xxxx").expires=dateadd("s",600,now())
evancss 2004-08-11
  • 打赏
  • 举报
回复
如果是10分钟推荐 你用session设置
coolzdp 2004-08-10
  • 打赏
  • 举报
回复
顶下!
论坛的cookies最少都是一天,
10分钟还是不会阿
Tenfire 2004-08-07
  • 打赏
  • 举报
回复
你可以下载一些论坛的程序,参照一下入口的代码。
一般都是具有选择性的登陆方式。
这样印象能更深,比直接写在这上面的好……
coolzdp 2004-08-07
  • 打赏
  • 举报
回复
response.Cookies("xxxx").expires=10
------------------------------------------------------
错误类型:
Cookies 对象, ASP 0200 (0x80004005)
为 'Expires' 指定的日期早于 1980 年 1 月 1 日,或晚于 2038 年 1 月19 日,3:14:07 GMT。
/index.asp, 第 154 行


response.cookies("xxxx").expires=dateadd("s",600,date())
这个也不行!
coolzdp 2004-08-07
  • 打赏
  • 举报
回复
都行么?
gu1dai 2004-08-07
  • 打赏
  • 举报
回复
response.Cookies("xxxx").expires=10
liumangrabbit 2004-08-07
  • 打赏
  • 举报
回复
response.cookies("xxxx").expires=dateadd("s",600,date())
flash0008 2004-08-07
  • 打赏
  • 举报
回复
response.Cookies("xxxx").expires=10

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧