I'm trying to use the IsNothing function to see if a session has been set but I keep getting an error.<BR><BR>Here is the code:<BR><BR>Public MustInherit Class HomePage<BR> Inherits System.Web.UI.Page<BR> Protected WithEvents lblWelcome As System.Web.UI.WebControls.Label<BR> Protected WithEvents lblMessage As System.Web.UI.WebControls.Label<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> Dim objLogon As New CustInfoWebLogin.CustInfoLogon()<BR><BR> If IsNothing(Session("objLogon")) Then<BR> Response.Redirect("default.asp")<BR> Else<BR> objLogon = Session("objLogon")<BR><BR> If Not (objLogon.Validate) Then<BR> lblWelcome.Text = "Welcome to " & Application("g_SiteName") & " Customer Web Site"<BR> lblMessage.Text = objLogon.Name & " please make a selection from the above menu."<BR> Else<BR> Response.Redirect("default.asp")<BR> End If<BR><BR> End If<BR> End Sub<BR><BR>End Class<BR><BR><BR>Here is the error message:<BR><BR>Compiler Error Message: BC30451: Name 'IsNothing' is not declared.<BR><BR><BR>Any ideas on what is going wrong?<BR><BR>Thanksuse this<BR><BR>if session("objlogon") is nothing then...That works Jeff, thanks for your help.