Admin user of child portal in 4.0 does not stay logged on

Last post 11-22-2005 10:04 PM by shware. 2 replies.

Sort Posts:

  • Hmm [^o)] Admin user of child portal in 4.0 does not stay logged on

    11-17-2005, 9:55 AM
    • Member
      381 point Member
    • CybrEnergy
    • Member since 09-26-2002, 2:11 PM
    • Mount Airy, MD
    • Posts 94
    Here's the scenario:

    • Just setup a new install of 4.0 with my web host.  (By the way, moving to 2.0 with WebHost4Life has been a MAJOR pain. I'll provide more details if anybody is interested.)
    • Left the main "default" portal blank, I'm not going to do anything with that for now.
    • Setup a new CHILD portal, added a new (unique) user as this portal's admin.
    • Log out of host account, login as this new CHILD portal's admin user.
    • Try to add new page, once clicking save or update, kicks me out to the login page.
    It's not retaining the new user's login credentials when I try to update anything.  I can access the Admin tab fine once I first login, it only drops or logs me out once I try to make any changes.  As a work around I've been doing stuff as the HOST account.

    Does anybody have any ideas as to what my problem may be?

  • Re: Admin user of child portal in 4.0 does not stay logged on

    11-18-2005, 8:00 AM
    • Member
      381 point Member
    • CybrEnergy
    • Member since 09-26-2002, 2:11 PM
    • Mount Airy, MD
    • Posts 94
    Anybody?  I've found that once I give the child portal its own domain name, the problem goes away.  It only seems to be a problem when the site piggy backs off of the main site's url.

    www.mysite.com/newportal <-- Site's admin user does not stay logged on
    www.newportal.com <-- Site's admin stays logged in, all is working

    The question still remains, why does the first scenario kick the new portal's admin user out each time I try to save changes?
  • Re: Admin user of child portal in 4.0 does not stay logged on

    11-22-2005, 10:04 PM
    • Participant
      1,066 point Participant
    • shware
    • Member since 02-26-2003, 8:53 AM
    • Posts 216
    Hi,

    Please see:

    http://forums.asp.net/1115029/ShowPost.aspx

    I've been seeing similar behavior on my localhost development machine.  I personally think it's tripping on forms that use ASP validation controls which kicks out a call to webresource.axd.

    I've been able to get rid of the signouts by adding a couple of lines to DNNMembershipModule.vb class.  If you can make changes / rebuild then I'd appreciate it if you could make the change and post back to lemme know if it helps any.  Here's the change I've made:

    In  DNNMembershipModule.vb  - right beneath:

                'First check if we are upgrading/installing
                If Request.Url.LocalPath.EndsWith("Install.aspx") Then
                    Exit Sub
                End If

    I added:

                If Request.Url.LocalPath.ToLower.Contains("webresource.axd") Then
                    Exit Sub
                End If


    Thanks!


    Shawn


Page 1 of 1 (3 items)