Public Class CadminPage
    Inherits Web.UI.Page
    Sub New()
        MyBase.New()
        If CType(Session("op"), operator).user Is Nothing Then
            Response.Redirect("frmlogin.aspx")
        End If
    End Sub
End Class其中"OP"是我定义的结构
Session在这里起不了作用,真是遗憾,有办法吗?