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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Child Portal LogoutChild Portal Logout
Previous
 
Next
New Post
2/11/2008 11:45 AM
 

I know that this issue has been written about in other posts, both here in DNN and "out there" elsewhere on the web. But the problem persists.

The symptoms are that you have a module that functions as expected when installed in a main/parent portal. When it's installed in a child portal, it doesn't work very well, because users get logged out after taking some action or another. There have been posts indicating it was fixed in 4.4.0, broken again in 4.5.0, "being looked at again", and who really knows?

Is there some generic solution to this problem? It is possible that specific manifestations of the problem have been fixed. In my case, I have a module that opens a new window (target="_blank"), collects some information, and passes that information back to the main DNN app. When the new window gets closed, the user is taken back to a login request for username and password. The only halfway "good" thing about this behavior is that when the login info is entered, the user is put back on the correct page rather than the main page, but that's pretty cold comfort.

I just tried this on a new 4.8.0 install, so even if the problem is fixed in some use cases and/or DNN releases, it's definitely not fixed in all of them.

Can anybody offer some insight/help? Cathal? Thanks.

 
New Post
2/11/2008 1:13 PM
 

Rick,

the module needs to make sure to provide a portal context in the URL, either by passing a moduleID or a portalID.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/20/2008 6:40 PM
 

 

Sebastian -

Thanks, but I fon't think I'm quite all the way there yet. When I return to the login page, my browser's url contains the following: http://localhost/dnn480/problemchild/WebPlanner/tabid/74/ctl/Login/Default.aspx?returnurl=%2fdnn480%2fproblemchild%2fWebPlanner%2ftabid%2f74%2fDefault.aspx

where localhost = my development machine, dnn480 = the local IIS Virtual Directory alias, and problemchild = the name of my child portal. You mentioned including the moduleid or portalid - isn't that what the second "problemchild" in the returnurl is doing? Or are you referring to something else?

And in any event, I'm not convinced that's what's going on here. The when child (target="_blank") window gets its own postback, it validates the input, writes it to a database, then registers a startup script that does exactly two things: 1) tells the parent window to do a postback (thereby refreshing itself when it recognizes that its session info has changed), and 2) the child window closes. Specifically, the script contains the lines "window.opener.__doPostBack('','');" and "window.close();" As far as I can tell, this really shouldn't have much more effect on the parent window than if a button were clicked (or any other event triggered the postback). About the biggest difference I see (thinking out loud here) is that the __doPostBack has no arguments, and everything I see when donig "ViewSource" on the rendered page does, so perhaps I'll try faking some arguments. Beyond that, I certainly don't know enough about javascript to understand why telling a parent page to post itself back should trigger a login request, so any other thoughts you might have would be appreciated.

Thanks.

 
New Post
2/21/2008 9:33 AM
 

Rick,

I think there is bug in core dnn. It happens at custom post (not with get or direct url input)  within child portal when regular user (no superuser /admin) is login. Similar bug reported here:

http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=4631&PROJID=2

Fix provided in dnn 4.6 but something similar happens in v 4.7 and 4.8. Other users also complain about this issue (and you and me :-)

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/204296/scope/posts/Default.aspx
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/threadid/192330/scope/posts/Default.aspx
...

Let me know if you will find solution or workaround, please

Kind regards,

Primoz

 
New Post
2/21/2008 10:43 AM
 

It's not a bug in DNN core.  It's a bug in the custom module.  Sebastian is correct.

The most common cause of this is the use of pages that contains "makethumbnail.aspx" to display images where the portal ID or module ID is not passed as part of its parameter.  It's hard to spot because this call is made within a custom module "somemodule.ascx".  What happens is when "somemodule.ascx" is called within a child portal, the first call will work because the user is still authenticated.  After the page is rendered the first time, the encounter with "makethumbnail.aspx" will cause the DNN core to log the user out.  The very next page the user navigates to, DNN sees that they are not authenticated, will direct them to the login page with the correct return URL set.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Child Portal LogoutChild Portal Logout


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