G
Guest
I'm trying to write a reusable Authentication component for our web
applications. I'm having some problems using the component in other projects.
I have a UserInfo class marked <serializable()> and an Authentication
component with a public function Logon():
public function Logon(byval username as string, byval password as
string>
as Userinfo
dim objUser as new UserInfo
'setup all the member data
return objUser
end function
Then, in another solution, I do:
dim objAuth as new Authentication
dim objUser as new User
objUser = objAuth.Logon("username", "password")
but when I look at the objUser, it doesn't seem to get set to anything.
Am I doing this correctly.
Craig
applications. I'm having some problems using the component in other projects.
I have a UserInfo class marked <serializable()> and an Authentication
component with a public function Logon():
public function Logon(byval username as string, byval password as
string>
as Userinfo
dim objUser as new UserInfo
'setup all the member data
return objUser
end function
Then, in another solution, I do:
dim objAuth as new Authentication
dim objUser as new User
objUser = objAuth.Logon("username", "password")
but when I look at the objUser, it doesn't seem to get set to anything.
Am I doing this correctly.
Craig