关于COOKIE重写的问题,比较麻烦!哪位大虾帮忙看看

海大富运动 2004-11-26 09:30:44
Login.asp页面
response.cookie("aa")=xx

index.asp页面

sub
If DateDiff("n",landtime,now())>1 Then
sql="update [User] set LandTotalTime=LandTotalTime+1 where username='"&Request.Cookies("username")&"'"
else
sql="update [User] * where username='"&Request.Cookies(username")&"'"
End If
rs.Execute(sql)
Response.Cookies("xx")=now() //这个变量好象没有改变Login.asp的变量值

end sub


...全文
80 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
海大富运动 2004-11-26
  • 打赏
  • 举报
回复
ding
海大富运动 2004-11-26
  • 打赏
  • 举报
回复
不行啊!response.cookie("aa")=xx这个是错误的
micher_yan 2004-11-26
  • 打赏
  • 举报
回复
这两个不一样啊,
response.cookie("aa")=xx只把xx写入到cookie名称为“aa”的cookie中
Response.Cookies("xx")=now()读出名称为“xx”的cookie的内容
sun94510451 2004-11-26
  • 打赏
  • 举报
回复
aa=request.cookie("xx")

28,409

社区成员

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

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