Re: DNN Sub Portal User Authentication

  •  08-18-2004, 11:20 AM

    Re: DNN Sub Portal User Authentication

    jloyola,

     
    Sorry for the late response. We are working/testing this issue since last night.  It's 11:13am (Eastern time ). We are from Ontatio, Canada.
     
    For the dotnetnuke sub portal problem , I think it's a bug of DotNetNuke.
     
    In global.asax.vb , It's auto singout if portalid not found .
     
    I commented this code , and the cutechat run OK now in sub portal :

    'If _portalSettings.PortalId <> Int32.Parse(PortalCookie.UserData) Then

    ' ' expire cookies if portal has changed

    ' Response.Cookies("portalid").Value = Nothing

    ' Response.Cookies("portalid").Path = "/"

    ' Response.Cookies("portalid").Expires = DateTime.Now.AddYears(-30)

    ' Response.Cookies("portalroles").Value = Nothing

    ' Response.Cookies("portalroles").Path = "/"

    ' Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

    ' ' check if user is valid for new portal

    ' Dim objUsers As New UserController

    ' Dim objUser As UserInfo = objUsers.GetUser(_portalSettings.PortalId, Int32.Parse(Context.User.Identity.Name))

    ' If objUser Is Nothing Then

    ' ' log user out

    ' FormsAuthentication.SignOut()

    ' ' Redirect browser back to home page

    ' Response.Redirect(Request.RawUrl, True)

    ' Exit Sub

    ' End If

    'End If

     

    and:
     

    '' Log User Off from Cookie Authentication System

    'FormsAuthentication.SignOut()

    '' expire cookies

    'Response.Cookies("portalid").Value = Nothing

    'Response.Cookies("portalid").Path = "/"

    'Response.Cookies("portalid").Expires = DateTime.Now.AddYears(-30)

    'Response.Cookies("portalroles").Value = Nothing

    'Response.Cookies("portalroles").Path = "/"

    'Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

     

    ----------

    But , I don't know what the impact is if that codes are commented!
     
    We are still investigating the problem and hope we can find a solution soon.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread