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

Forums / Bugs & Issues / Editing a page redirects to login page

Editing a page redirects to login page

9 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    4 posts
    Registered:
    01 Oct 2010
    27 Oct 2010
    Link to this post
    I am using Sitefinity 3.6 (3.6.1936.2).

    When I'm browsing the pages section of the admin interface and click on a page to edit, the login page shows up for a second in the preview window before I am redirected to the login page. Trying to login at this point doesn't work at all.
     
    I don't have any idea what could be causing this.

    Thanks for the help.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 Oct 2010
    Link to this post
    Hi Jeremy,

    Most probably you have some code that clears the authentication cookie or your application pool gets recycles because of some limits.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Jeremy
    Jeremy avatar
    5 posts
    Registered:
    10 Aug 2010
    03 Nov 2010
    Link to this post
    Ok, that was not helpful.

    Can you explain to me how I would check out either one of those two possibilities?

    Thanks,

    Jeremy Holland
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Nov 2010
    Link to this post
    Hi Jeremy,

    1. Check the cookies in the browser

    2. Check the IIS log to see when the application pool has been recycled

    3. Check which controls you have dropped on a page and if you have a custom one see whether you use methods like FormsAuthentication.SingOut();

    4. Try using a new master page without any controls on it and create a new cms page. Use only controls that comes with Sitefinity installation.

    You could also run the project through Visual Server and try to replicate the issue. This will determine whether the problem comes from IIS or not.

    I am wondering how you have created your pages so far if you are redirected always to the Login form?


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Jeremy
    Jeremy avatar
    5 posts
    Registered:
    10 Aug 2010
    03 Nov 2010
    Link to this post
    1. Check the cookies in the browser
    When I checked the cookies in the browser, a cookie called .ASPXROLES is created when I first opened the login page. After I clicked on a link to view a page in the admin interface and was redirected to the login page that cookie was changed to something completely different.

    2. Check the IIS log to see when the application pool has been recycled
    I checked the logs and all that I see is several GET requests in a row. There's nothing to indicate an app pool is recycling

    3. Check which controls you have dropped on a page and if you have a custom one see whether you use methods like FormsAuthentication.SingOut();
    I am in the admin interface, specifically on http://hd/sitefinity/Admin/Pages.aspx. I don't think that anyone had modified this page, as far as I know it is the page as it was installed. I click on a link to open one of the pages I've created and the URL in address bar is:
    This stays for a second and then I am redirected to this page:
    At this point the login doesn't work unless I delete the entire querystring.
    If I try to create a page the same thing happens once I click Create Page after filling in the initial property screen:


    4. Try using a new master page without any controls on it and create a new cms page. Use only controls that comes with Sitefinity installation.
    I can't try this because I can't even get to the edit page mode to change what template is used.


    I could create and edit pages just fine until a couple of weeks ago and then this behavior started happening.
  6. Jeremy
    Jeremy avatar
    4 posts
    Registered:
    01 Oct 2010
    03 Nov 2010
    Link to this post
    Further testing revealed that once I am redirected to the login page (which won't let me login without deleting the querystring, for this test however I left the querystring as is.) each time I click the login button with valid credentials in the username and password fields a new .ASPXROLES cookie is generated. I tried clicking the button several times and was able to reproduce this behavior over and over.
  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    04 Nov 2010
    Link to this post
    Hello Jeremy,

    Can you please try setting the bellow value in system.webServer/modules configuration section:
    <system.webServer>
        ...
        <modules runAllManagedModulesForAllRequests="true">

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Jeremy
    Jeremy avatar
    5 posts
    Registered:
    10 Aug 2010
    04 Nov 2010
    Link to this post
    The changes made to the web.config file seem to have fixed the problem. I can now edit pages. Awesome!

    What was the problem exactly? I'm guessing one of the Sitefinity modules wasn't running when it needed to?

    Thank you seeing through this issue to resolution. I really appreciate your commitment to resolving my problem.
  9. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    04 Nov 2010
    Link to this post
    Hello Jeremy,

    The problem was that you have configured your website to use extensionless urls. Extensionless urls do not come natively with .NET 3.5 and 2.0, so I guess that IIS does not run some of the http modules if the request is to an extensioless page.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
9 posts, 0 answered