More in this section
Forums / Bugs & Issues / LoginStatusControl in Master Page.

LoginStatusControl in Master Page.

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. Ravi
    Ravi avatar
    4 posts
    20 May 2014
    08 Jul 2014
    Link to this post

    I have 2 master pages, one master page is used for main page or home page and the other secure master page is used after logging in. The Login Widget is used in main page master page and able to login and go to Secure pages. 

    In my Secure Master page I have ,

    <%@ Register Namespace="Telerik.Sitefinity.Web.UI.PublicControls" Assembly="Telerik.Sitefinity" TagPrefix="pc" %>

      <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />

     <pc:LoginStatusControl ID="LoginStatus1" runat="server" LoggedOutLayoutTemplatePath="~/SFRes/Telerik.Sitefinity.Resources.Templates.PublicControls.LoginStatus_LoggedOut.ascx" LogoutAction="Refresh"></pc:LoginStatusControl>

    After I get to the secure pages I see the Logout button but when I click on it , there is no response, it does not do any postback. Added the properties LogoutAction="Redirect" LogoutUrl="/(path of the page" but still no luck.

    Can you please help me redirect to the main page when Logout is clicked.


  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    26 Mar 2015
    11 Jul 2014
    Link to this post
    Hi Ravi,

    Thank you for contacting us.

    I am afraid this behavior is expected. You are not able to use the login status control in this manner as it will not connect to its codebehind and therefore no actions will raise when the button is clicked. What I can suggest is you use the out-of-the-box widget or create a custom one. You can find further information on the particular control in this forum thread. As you can see there, changing the template of this widget is not an option due to the output cache substitution we perform on it. 

    Attached you can find a simple custom widget that performs the logic of the default login status control. Feel free to modify it as per your requirements.

    I hope this helps. Let me know if there are further questions.

    Ivan D. Dimitrov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered