More in this section

Forums / General Discussions / Login Control

Login Control

2 posts, 0 answered
  1. Anu
    Anu avatar
    72 posts
    Registered:
    17 Jun 2010
    19 May 2011
    Link to this post
    Hi,
    I need to give authorised access to only one aspx page from my project.
    Rest all the pages are in sitefinity 4.0
    I have create a page in sitefinity and dragged the sitefinity-Login control on that page, and set the redirect path to the 'aspx' page.
    My rest of the site is open for everyone.
    I achieved the functionality - if user logins through the login page , he will redirect to aspx page.
    But the issue is , if that aspx page is access directly by typing URL, then user is able to view the page.

    I need to restrict that page access from outside.How it can be done using sitefinity control.
    Can i send some parameter to my aspx page from the sitefinity login control page?

    Please help.
    Thanks

  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    19 May 2011
    Link to this post
    Hi Anu,

    You can include some logic in the aspx page code-behnid or inside a script block on the page. For example:
    if(!HttpContext.Current.User.Identity.IsAuthenticated)
               {
                   Response.Redirect("~/MyLoginPage");
               }
    I hope you find the above information useful. If you need any further information, please let us know.

    All the best,
    Boyan Barnev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered