Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Child Portal Logout IssueChild Portal Logout Issue
Previous
 
Next
New Post
4/10/2014 10:05 AM
 

Currently we have single DNN installation with multiple sites in it. Some of them are created as parent, child portal. Recently we are facing logout issue on child portals for admin and registered user (not host users). When any Admin/Registered user logs in, in child site and try to perform any action e.g. edit any module or navigate to any page or even refresh the page, he gets logged out .

Points to note:

· We are using DotNetNuke version 7.0

Thanks

Manish Singh

 

 
New Post
4/10/2014 11:20 AM
 

I answered a similar query recently-

In DNN the host user is special as they are an admin in every portal, so moving between portals does not log them out. Similarly if a request makes it to a dnn site but cannot be resolved, then DNN loads the default (first) portal - so typically when you see an issue such as this the problem is either that the module contains a .net mapped request to a file outside the DesktopModules folder (and this request is interpreted by DNN as a change of portal, causing the user to be logged out), or that the portal alias's/IIS binding for the DNN site is wrong. As the child portal is loading the 2nd example will not be the problem, so it's likely the first - to check, use a http proxy such as fiddler and access the module in the child portal. View the requests and see if anything goes to the primary portal (e.g. perhaps a request such as mysite.com/portals/0/somefile.aspx), or calls a .net mapped request (.aspx/.asmx etc.) outside desktopmodules (e.g. mysite.com/myservice.asmx or mysite.com/thumbnail.ashx). If you see that you need to either rearrange the code so the file is within the desktopmodules/ folder, or ensure the requests have a portalid appended so DNN can assess that the request came from a user of that portal (i.e. mysite.com/myservice.asmx?portalid=1)           


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/22/2014 7:47 AM
 
After looking around it appears to have been a setting in the web.config file with the "enableViewStateMac" there is a known bug in ASP.net 4..0 that can cause problems like this. After setting the enableViewStateMac and enable EventValidation to false I am able to navigate around the site as I should. I tested this on the host, admin, and even a separate user.

 
New Post
4/22/2014 8:30 AM
 
I do not recommend you set either of those two parameters to false as it will open your site up to potential security issues - note: also I am not aware of any known bug in asp.net 4.0 with either of them.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Child Portal Logout IssueChild Portal Logout Issue


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out