Z
Z GIRL
Hi
I was to create a generic shared class to check for existance of
a user login id. I'm just not sure how to do this correctly.
This is what I have
Public Class User_Utility
Shared Function CheckSession() As boolean
if Session.Item("nCustID") is nothing then
CheckSession = False
else
CheckSession = True
end if
End function
What do i need to import or associate with this class
in order to access the Session object?
I tried Imports System.Web.SessionState
but that didn't work.
Oh one other question. A shared class will only check the session
in scope, not any session variable right?
Thanks in advance
I was to create a generic shared class to check for existance of
a user login id. I'm just not sure how to do this correctly.
This is what I have
Public Class User_Utility
Shared Function CheckSession() As boolean
if Session.Item("nCustID") is nothing then
CheckSession = False
else
CheckSession = True
end if
End function
What do i need to import or associate with this class
in order to access the Session object?
I tried Imports System.Web.SessionState
but that didn't work.
Oh one other question. A shared class will only check the session
in scope, not any session variable right?
Thanks in advance