i’ve done a cms, but i want the user to log in before they access to it. So i have a form for the logging part and another page for the cms. I taught that if used session it would be easier because that would allow the user to logout once they have finished.
My authentication’s form work well but now i don’t know how to do in order to got to the next page if the filled information is correct and to stay on the same page if they are wrong. Also i want to come back to the loggin page once they loggout. The whole system should work like the one for email (hotmail , etc).
Can anyone help me or if there is a tutorial that explain how to do it then let me know.