+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Anonymous access problem

Anonymous access problem

2 posts, 0 answered
  1. Gaurav Mehta
    Gaurav Mehta avatar
    43 posts
    Registered:
    09 Dec 2009
    22 Mar 2011
    Link to this post
    Hi,

    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

    try
            {
                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;
                        }
                    }
                }
            }
            catch
            {
            }

    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 ?

    Regards,
    Gaurav
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    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