Answer the question
In order to leave comments, you need to log in
How to change the data of an authorized user in sessions without relogin?
The question is in the title. There is authorization by login and password and check for admin:
if ($_SESSION['login'] -> admin === '1'){
echo('admin');
}
Answer the question
In order to leave comments, you need to log in
When changing privileges, change their value in the session.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question