Foxtable(狐表)用户栏目专家坐堂 → 网页设计cookie问题


  共有2091人关注过本帖平板打印复制链接

主题:网页设计cookie问题

帅哥,在线噢!
ycs5801
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:942 积分:6803 威望:0 精华:0 注册:2009/6/24 9:44:00
网页设计cookie问题  发帖心情 Post By:2021/2/27 15:08:00 [只看该作者]

Dim e As RequestEventArgs = args(0)
Dim wb As New WeUI
Dim dr As DataRow=DataTables("报关员").sqlfind("手机号='" & e.Cookies("username")  & "'")

If dr IsNot Nothing  AndAlso  dr("密码")=e.Cookies("password")  Then  '''如果有此用户,且密码正确.    
   
    With wb.AddGrid("","g1")
        .Add("c1","Button", "./images/button.png").Attribute = ""
        .Add("c2","Cell", "./images/cell.png", "http://www.foxtable.com")
        .Add("c3","Toast", "./images/toast.png", "http://www.foxtable.com")
        .Add("c4","Dialog", "./images/dialog.png", "http://www.foxtable.com")
        .Add("c5","Progress", "./images/progress.png", "http://www.foxtable.com")
        .Add("c6","Msg", "./images/msg.png", "http://www.foxtable.com")
        .Add("c7","Article", "./images/article.png", "http://www.foxtable.com")
        .Add("c8","ActionSheet", "./images/actionSheet.png", "http://www.foxtable.com")
        .Add("c9","Icons", "./images/icons.png", "http://www.foxtable.com")
        .Add("c10","Panel", "./images/panel.png", "http://www.foxtable.com")
        .Add("c11","Tab", "./images/tab.png", "http://www.foxtable.com")
        .Add("c12","SearchBar", "./images/search.png", "http://www.foxtable.com")
    End With
e.WriteString(wb.Build)
Else
    wb.AppendHTML("<meta http-equiv='Refresh' c>")
End If


Dim dr As DataRow=DataTables("报关员").sqlfind("手机号='" & e.Cookies("username")  & "'")

If dr IsNot Nothing  AndAlso  dr("密码")=e.Cookies("password")  Then  '''如果有此用户,且密码正确.    

这句代码是否正确?现在我无法提取到cookie值,直接就转到login页面了。

 回到顶部