Add a common function to check login session on every page and redirect non loggedin user to login page.
You can add that function in header file
Similarly add logic to check user role and show the appropriate message if user is not authorized to access that page.
Do not show the button, text, image, list, link etc if user is not authorized to use it.
Add a common function to check login session on every page and redirect non loggedin user to login page. You can add that function in header file Similarly add logic to check user role and show the appropriate message if user is not authorized to access that page. Do not show the button, text, image, list, link etc if user is not authorized to use it.
Estimated: 4 hours