Login Control

Posted by Community Admin on 03-Aug-2018 12:45

Login Control

All Replies

Posted by Community Admin on 19-May-2011 00:00

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

Posted by Community Admin on 19-May-2011 00:00

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

This thread is closed