Answer the question
In order to leave comments, you need to log in
Whether correctly I understood the mechanism of authorization?
if(isset($_SESSION["user"]) and isset($_SESSION["key"])){
echo "Вы - " . $_SESSION["user"];
//тут выводим контент доступный только авторизованному пользователю
}else{
echo "Вы должны войти";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question