Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Chat and Cute Web Messeng...
»
Re: Integration with member database issue
Re: Integration with member database issue
11-06-2008, 8:29 PM
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Integration with member database issue
Reply
Quote
Hi,
Public Overrides Function GetUserInfo(ByVal loginName As String, ByRef nickName As String, ByRef isAdmin As Boolean) As Boolean if HTTPContext.Current.Session("zuid") <> "" then return true nickName = loginName If HTTPContext.Current.Session("zUserType") = "1" Then isAdmin = True Else isAdmin = False End If else return false end if 'return false , if the loginName is invalid. 'otherwise set the nickName and isAdmin , and return ture End Function
Please do not use HttpContext.Current in the GetUserInfo function.
Try to use parameter loginName , and return the user information.
Regards,
Terry
View Complete Thread