More in this section
Forums / Developing with Sitefinity / Anonymous access problem

Anonymous access problem

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Gaurav Mehta
    Gaurav Mehta avatar
    43 posts
    09 Dec 2009
    22 Mar 2011
    Link to this post

    We are using Sitefinity 3.6 SP1

    Our Web site hosting Server Details:

    Windows Web Server 2008 R2 SP1
    It has .Net Framework 2.0, 3.5 SP1 & 4.0 installed.
    IIS 7.5

    We are using Mysql (64 bit version) for database

    One our site has been password protected using following code in Master page_load event

                var cmsManager = new CmsManager();
                if (cmsManager != null)
                    IList l = cmsManager.GetPages();

                    foreach (IPage p in l)

                        ICmsPage cmsPage = (ICmsPage)cmsManager.GetPage(p.ID, true);
                            cmsPage.DenyAnonymous = true;

    Now we want to remove this password protection and allow anonymous user to access all pages.
    In order to do this we did following but none of them work :

    Master Page Code
    We removed above Anonymous access deny code from all our master pages
    But after these changes site pages are still password protected.
    Note : After Master page code changes we also restarted the web site and application pool.

    Individual Page Property
    Using Sitefinity Admin area, we tried to set "Anonymous Access" property to "Allow" for particular page.
    But after some time these changes are reset and again this property is set to "Deny" automatically.
    We trying to identify the reason for this behavior.

    Database table field update
    We also set "DenyAnonymous" field to "0" in "sf_cmspageprops" table through update query directly but that did not work as well.
    Note : We took backup of the database before updating this field.

    Please let us know what could be wrong ?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    24 Mar 2011
    Link to this post
    Hello Gaurav,

    Please check the column [DenyAnonymous] of [sf_CmsPageProps] table and see the value that is set.

    0  means Anonymous access is allowed
    1  means Anonymous access is denied.

    All the best,
    Ivan Dimitrov
    the Telerik team
2 posts, 0 answered