Hi guys,
very simple question: I have admin site in my web project. So, how can I make it safe?
What I have until now:
- Database handled user with userID and userlevel
- on the pageload of the admin master page (which includes all admin sites) there is a clause to check if userID is okay (get the user from database) and if userlevel is right
- If Not, redirect to Default.aspx with normal master page
- if yes, go trought
How safe is it really?
Edit:
- The userID is saved in a session on the server.
- There is no way to save the login (no cookies).
- The user must login to get the userID in the session
- The login is saved in a database table user_log with username, password, ip, loginsucceeded and userID