Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Performance Tip
Previous Previous
 
Next Next
New Post 4/29/2007 7:08 AM
User is offline John Mitchell
3854 posts
www.snapsis.com
4th Ranked




Performance Tip  

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


 
New Post 4/29/2007 6:30 PM
User is offline seth her
8 posts
www.nothing.com
10th Ranked


Re: Performance Tip  

 

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 10:36 PM
User is offline Shawn Mehaffie
1963 posts
5th Ranked




Re: Performance Tip  

John,

Can you please log this as an anhancement in Gemini?

Thanks,

 
New Post 4/30/2007 2:28 AM
User is offline Ismet Dumlupinar
581 posts
www.mynetnuke.com
8th Ranked




Re: Performance Tip  

Thanks for the Tip John


Ismet Dumlupinar
MCP/MCDST/MCT
DotNetNuke Türkçe
My DotNetNuke Blog for Global Users
 
New Post 4/30/2007 3:24 AM
User is offline cathal connolly
2541 posts
www.cathal.co.uk
5th Ranked










Re: Performance Tip  

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 Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  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.

 


Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com
DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP