请问老师 怎么获取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) '生成网页