I wrote this class to check the session values
Imports Microsoft.VisualBasic
Public Class UserCheck
Inherits System.Web.UI.Page
Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Session("AppMstID") Is Nothing Then
Response.Redirect("~/index.htm", False)
Exit Sub
End If
If Session("AppMstLoginName") Is Nothing Then
Response.Redirect("~/index.htm", False)
Exit Sub
End If
If Session("AppMstID") Is Nothing AndAlso Session("AppMstLoginName") Is Nothing AndAlso Session("TokenName") Is Nothing AndAlso Request.Cookies("TokenName") Is Nothing Then
Response.Redirect("~/index.htm", False)
Exit Sub
End If
If DBNull.Value.Equals(Session("TokenName")) = True Then
Response. ...
Go to the complete details ...