-5

I am making a website, It does not have Member System but it has Admin page that i want only Admins allowed to access, I have created login panel for Admins and when typing a certain password they are Redirected to the Admin Default Page, The problem is when anyone type the path of the admin page he can access it without logging in

  • 1
    I wish you all the best with your endevour. When you encounter a _specific_ question, feel free to ask it. What you can't expect though is that we do the coding for you. – Sefe Dec 27 '16 at 10:08
  • I just don't even know how to make it, I want to know the idea, didn't ask for any code btw – Ahmed Khaled Dec 27 '16 at 10:09

2 Answers2

3

You need to create Session.
You can find your solution here Secure Login Or Login check in asp.net
Hope this might help you

Community
  • 1
  • 1
Ravi Matani
  • 804
  • 1
  • 8
  • 21
0

To ensure that only admins can access the page you specify, try saving a variable in the users session as a 'cookie'. There should be enough examples to be found on stackoverflow!

TeaMonkie
  • 169
  • 9