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...Users Getting Logged OutUsers Getting Logged Out
Previous
 
Next
New Post
6/1/2010 3:25 PM
 
I too am experiencing this same problem. I'm running an unmodified version of DNN 5.4.2 CE on my own dedicated server (W2008 64-bit, IIS7, SQL Server 2008 Standard Edition 64-bit). I'm been researching the problem for several weeks and haven't found any workable resolution. If admin users on any of my portals click on certain pages, they automatically get logged out. Our QA department has impersonated client admin accounts and have confirmed this behavior is consistent. We've tested exhaustively and it has nothing to do with the client because the behavior is consistent across all computers tested (numerous ones across the country), all OS's, all browsers tested, etc. The host account is unaffected. We are using the standard DNN authentication service provider.

We've systemically tested and found offending modules that if removed from a page, cause the problem to go away and behavior to return to normal. Unfortunately, there are several modules that cause this problem such as the DNN Feedback form, NavXP, iWeb Feedback Designer, Markit: Slideshow, and numerous others. We've gone in and disabled specialized modules such as ifinity URL Master and DNNMasters Multi-User Portal Sharing Xtreme that we thought might be playing a role. Then, we flushed all server and client cache and restarted everything but no such changes have made any difference.

This problem is so severe it's caused major project launch delays that are jeopardizing our business. Any insights would be greatly appreciated.

Thanks,
John
 
New Post
6/1/2010 6:38 PM
 
John

In my experience, logged out users comes from one of two things:
1) loss of the authentication cookie from the session
2) switching of the domain/portal between pages - can be either domain.com to www.domain.com or even portal1.com to portal2.com - if the host is unaffected the second is a possibility.

There are other reasons but these are the most common I have seen.  In your post you don't say if you have traced all the Http traffic during a session, and how repeatable the problem is?

The Url Master module can exacerbate a problem like this if you have an unwanted redirect switching the domain on you, or dropping the cookie from the current user session.

If you can reliably re-create the problem, then trace the http traffic (with the browser cache flushed, so new copies of all files are downloaded).  Carefully inspect each request and see if you can identify where the authentication cookie goes missing.  I recommend Microsoft Fiddler for this job, and get the 'webview' add on for Fiddler, so you can see what the html of the reuqest looks like.  Once you discover which request is dropping the authentication cookie/and or causing the logout to occur then you can concentrate on working it out from there.  You can check if a prior request (which kept the user logged in) still works - which means the user wasn't logged out, they just lost their session - or if it no longer works, which means they were actually logged out.

Hope all that makes sense.
 
New Post
6/1/2010 7:16 PM
 
Bruce,

Thanks a bunch for the response. I had done a lot of diagnostics on the problem using Fiddler and other tools to no avail - all normal parameters.

Thankfully however, I did find a solution from another user on (http://web3.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/postid/369822/scope/posts/Default.aspx#369822) who had encountered the same problem.

As soon as we added the admin user accounts from child portal to the parent portal, all the log out problems went away. Since we were  building the sites in a staging mode prior to launching to the client's domains, we had to run them on one of our domains as child portals. For some reason, there appears to be a permissions bug in DNN where admin accounts running on a child portal will have problems if that same account and permissions do not also exist in the parent portal. This issue is only caused by certain modules such as the DNN Feedback module. The problem is very consistent so it shouldn't take much to repeat it for debugging purposes.

Thanks again for your help,
John
 
New Post
7/1/2010 3:51 AM
 
Hi John

I encountered this as well and it seems to be related to friendly url rewriting. We use the Ifinity Url master for this one but I have heard of others having similar issues with others.

Here is something another module developer had to say about this
------
If I am correct, the issue is related to the fact that xxxx.domain/child portal and xxxx.domain have two different portals. DNN at times as struggled with applications which utilize an application file with the .aspx extension because it causes the app to execute the standard url rewriting, and therefore, the standard behaviour in there that clears out the authentication cookie if the PortalID doesnt match the portalID in the cookie. While I realize that DNN should actually fix their problem by using two different cookies, that is a little too much to expect being that it as been a problem for so long.
-----

It is true that adding the same user on your parent portal will solve this but this is not the best solution. What if you have registered users that all may add items to certain modules ( in our case PropertyAgent ). You dont want to have to recreate all users on parent portal.

If you are using Ifinity URL Master you can modify the "noFriendlyUrlRegex" in the advanced regex filter section. I changed it tso that all  urls that contains /edit should not be rewritten and because we are using PropertyAgent i also had to add edit urls related to that module

/edit|PropertyManager

I finally solved allmy issues so maybe this will help someone else as well


 
New Post
11/22/2010 9:50 PM
 
I just wanted to come back in on this topic, even though it is an old post.

Through researching another instance of this issue on a site using both the Url Master module and the Markit Slideshow on a child portal, I worked out some more relevant information.

In the case of the Markit slideshow, the symptom will show up as an immediate logout once logged into the child portal.  This will occur on any page that has the slideshow implemented as a module.  It may be incorrectly diagnosed as a logout on some other action (ie, click on another page, try and edit content, etc).  The problem is that the user is logged out immediately after viewing the page.  The cause is that the .ashx requests made by the Markit module cause the logout when the Url Master module is installed.

These .ashx requests are for resources like cssHandler.ashx, ImageHandler.ashx and perhaps others.  Each of these calls passes a long querystring to the handler.  It's not clear ot me what these calls do, and it's not really important anyway.  What happens is that these calls get processed by the Url Master module, and that causes the user to be logged out.  I don't know the exact cause, but my guess is that because they are made to the 'root' of the site (ie example.com) then the incorrect portal is loaded for the authentication (ie example.com/child should be used) and the authentication code in DNN logs out the user for requesting the wrong portal.

The solution is to stop these calls from being processed through the Url Rewriting code.  Stoppign them being processed prevents the portal settings code from being run, which prevents the authentication code from being run.  Thus the calls are made anonymously, and don't interfere with the authentication.

So, for the Markit module, you need to add on a regex pattern to the 'ignoreRegex' field.   I've detailed this in a KnoweldgeBase page for the module here: Url Master / Markit Slideshow Settings  - I haven't put the settings into this forum post as I try and keep a canonical resource for this type of thing should future releases change this.

For other modules behaving in a similar way, the solution is likely to be similar.  First, try and identify which requests might be doing the logoff action.  If you trace with Microsoft Fiddler, you'll often see a 302 instead of a 200 for some requests in the page.   This is a marker of something to look at - the 302 is caused by the logoff code redirecting back to a different page.  ALternatively, try removing/disabling modules on a module-by-module basis until it stops logging off.  If you find which it is, then look at the requests for that module more closely.

Putting a matching expression into the 'ignoreRegex' pattern means that, for the purposes of Url Rewriting (and by extension, portal identification and portal settings loading), the request will be totally ignored.   This is often the way to solve an issue like this.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Users Getting Logged OutUsers Getting Logged Out


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