以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  Cookie  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=146999)

--  作者:lshshlxsh
--  发布时间:2020/3/7 14:23:00
--  Cookie
请问老师 怎么获取cookie值?
下面代码是 aa页面  跳转到页面bb.html 
bb.html 页面 怎么输出  Cookie  username


Dim e As RequestEventArgs = args(0)
Dim wb As New weui

Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.C
cmd.CommandText = " s elect * from 用户表 where 企业微信USERID=\'admin\' "
dt = cmd.ExecuteReader()

If dt.DataRows.Count >0 Then
    
    Dim dr As DataRow =dt.DataRows(0)
    e.AppendCookie("userid",dr("账号") )
    e.AppendCookie("username" , dr("用户名") )
    wb.InsertHTML("<meta http-equiv=\'Refresh\' c>") \'跳转到授权链接
End If
e.WriteString(wb.Build) \'生成网页

--  作者:有点蓝
--  发布时间:2020/3/7 14:36:00
--  
改为使用wb.AppendCookie