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

Forums / Developing with Sitefinity / Login Page URL

Login Page URL

2 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    6 posts
    Registered:
    06 Oct 2008
    29 Oct 2008
    Link to this post
    Is there a way to redirect the user upon login? 

    I see the area for the logout page URL within the LoginStatus control --> Behavior section.  However, I do not see anything for a LoginPage URL. 

    Let me know if there is a way to automatically direct a user to a page after logging in.  I am simply trying to avoid any confusion the user may experience after logging in and seeing the same page they were just on with not much changed.

    I have 1 site using SiteFinity 3.2 and another site will be using 3.5 next week. 

    Thanks!
    Jeremy
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    30 Oct 2008
    Link to this post
    Hello Jeremy,

    In the administrative area you can redirect a user from My Preferences section. If you want to redirect users from the public part you could use Login Control and set DestinationPageUrl property manually. And this is the main idea of this control property.
    If you want to use Login Status control you can set LogoutAction property to RedirectToLoginPage.
    LoginStatus control provides a link to the login page defined in the application configuration settings. public users will be redirected to your login form instead of Sitefinity login page changing the application web.config as the example below demonstrates.

     <authentication mode="Forms"
          <forms name=".ASPNET" loginUrl="~/mypage.aspx" protection="All" timeout="1440" path="/" /> 
        </authentication> 
        <authorization> 

    The control behavior is controlled by the LogoutAction property - refresh the current page, redirect a user to the login page defined in the application configuration settings, or redirect a user to a page specified by the LogoutPageUrl property. By default current page is refreshed.

    I hope this helps.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered