I have asked this questions many times and have never received an answer. I am starting to wonder if there is one.
I need to create a custom cookie for some sub-domains that I have. I tried doing it in the Signin.ascx.vb after the user was verified but that did not work.
Then I tried creating an Authenticate Check in the Global.ascx.vb but this also did not work.
ReadOnly Property IsAuthenticated() As Boolean
Get
Dim u_instance As IIdentity
Dim blnAuth As Boolean
blnAuth = u_instance.IsAuthenticated
If blnAuth = True Then
Dim strUserName As String
Dim strEmail As String
Dim dnnUserInfo As New DotNetNuke.Entities.Users.UserInfo
strUserName = dnnUserInfo.Username.ToString
strEmail = dnnUserInfo.Membership.Email.ToString
Response.Cookies("ICVUser")("username") = strUserName
Response.Cookies("ICVUser")("emailAddress") = strEmail
End If
End Get
End Property
Please help. I am new to DNN and still trying to learn asp.net 2.0
Bryan