HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Performance Tip Performance Tip
Previous
 
Next
New Post
4/29/2007 8:08 AM
 

If you are concerned about performance in your DotNetNuke websites like I am, here is a quick and easy performance enhancement.
Recent versions of DotNetNuke have added a check to warn you if you are using "admin" or "host" as a username.
This check happens on every page request, and is not needed IMO.

To remove this warning, simply delete the following lines of code from Default.aspx.vb

            'check if running with known account defaults
            Dim messageText As String = ""
            If Request.IsAuthenticated = True And String.IsNullOrEmpty(Request.QueryString("runningDefault")) = False Then
                Dim userInfo As UserInfo = HttpContext.Current.Items("UserInfo")
                'only show message to default users
                If (userInfo.Username.ToLower = "admin") OrElse (userInfo.Username.ToLower = "host") Then
                    messageText = RenderDefaultsWarning()
                    Dim messageTitle As String = Services.Localization.Localization.GetString("InsecureDefaults.Title", Services.Localization.Localization.GlobalResourceFile)
                    UI.Skins.Skin.AddPageMessage(CType(ctlSkin, DotNetNuke.UI.Skins.Skin), messageTitle.ToString, messageText.ToString, Skins.Controls.ModuleMessage.ModuleMessageType.RedError)
                End If
            End If

As per the forum guidelines for this Announcement, I have created a post for discussion on this topic at the following link.
Performance Tip - Remove default user check on every request


DotNetNuke Modules from Snapsis.com
 
New Post
4/29/2007 7:30 PM
 

 

1) why was the extra check added? i can only speculate from a usability perspective.

2) it would be nice if DNN had some configuration options.

a) user friendly

b) standard (mix)

c) optimzed

d) enteprise

 

 

 
New Post
4/29/2007 11:36 PM
 

John,

Can you please log this as an anhancement in Gemini?

Thanks,

 
New Post
4/30/2007 3:28 AM
 

Thanks for the Tip John


Or-Rouge Team Or-Rouge
Personally recommend Hostgator for hosting single or multiple DotNetNuke Websites.
DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy root
DotNetNuke Türkçe Hakkinda Hersey
 
New Post
4/30/2007 4:24 AM
 

actually, its coded like that so the performance impact would be minimal. The check for default username/passwords is only done during the login sequence and not on every page request, and appends the querystring parameter so it can be picked up with a check in default.aspx. The check has minimal overhead, as it's only determining if a querystring exists and the user is authenticated - in real terms the performance is miniscule. We could add a host level setting to determine if this code is executed, but it would actually take longer to access this host level variable, than it would do to do the check, so any such logic would be disengenuos IMO.

I will amend the logic to use "AndAlso" rather than "And", so the second check is never performed for unauthenticated sessions.

Cathal

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Performance Tip Performance Tip


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Try An Online Demo
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates Snowcovered.com where users purchase third party apps for the platform.