asp Request.Cookies 操作 - 飘凌大杂烩
飘凌大杂烩电脑网络手机数码编程技术asp Request.Cookies 操作
    
 
asp Request.Cookies 操作
发起人:piaoling  回复数:0  浏览数:6175  最后更新:2009/12/3 16:32:02 by piaoling

选择查看 搜索更多相关主题  帖子排序:
2009/12/3 16:32:02
piaoling






角  色:管理员
等  级:旅长
发 帖 数:672
经 验 值:2001
注册时间:2008/12/7
asp Request.Cookies 操作

 Function ResponseCookies(Key,Value,Expires)

 Response.Cookies(Key) = ""&Value&""
 Response.Cookies(Key).Path = DomainPath
 if int(Expires)>0 then Response.Cookies(Key).Expires = date+Expires

End Function

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

  If request("auto_login")="1" then
   Expires=9999
  Else
   Expires=0
  End If
 
  ResponseCookies "UserID",rs("nId"),Expires
  ResponseCookies "sUName",rs("sUName"),Expires
  ResponseCookies "sUPass",rs("sUPass"),Expires
  ResponseCookies "auto_login",request("auto_login"),Expires

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

sUName=Request.Cookies("sUName")
 sUPass=Request.Cookies("sUPass")
 auto_login=Request.Cookies("auto_login")

返回页首↑


津ICP备09000164号

联系我们 - piaoling Corporation - 论坛存档 - 返回顶端
Powered by BBSXP 2007 ACCESS © 1998-2025
Server Time 2025/1/13 17:47:48
Processed in 0.02 second(s)
飘凌大杂烩