Last post Jan 11, 2018 07:41 AM by Eosia
Jan 10, 2018 09:14 AM|Eosia|LINK
Please kindly help here is an example of the link that the user has saved on the bookmarks o google chrome the user clicks the link and it just directs to the exact page, http://localhost:4235/Admin/AddEvent.aspx
How can i force the user to go to login if the click the above link.
Jan 10, 2018 10:36 AM|PatriceSc|LINK
What happens currently? Do you have some authorization in place? If not see
ASP.NET should do this out of the box ie if a page is not allowed, ASP.NET direct the user to the login page and keep the return url so that once logged the user can be directed back to the page he tried to access.
For now I asume this link is not configured to be restricted only to some users ?
Jan 11, 2018 05:35 AM|Fei Han - MSFT|LINK
According to you description, it seems that you want to redirect unauthenticated users to login page. If you do not do anything to authenticate and authorize users in your application, an easy way to achieve it, you can try to
implement simple forms authentication, which can help you understand how authentication and authorization secure application.
Jan 11, 2018 07:41 AM|Eosia|LINK
Thank you so much i will try the solution on the link you gave me.