Answer the question
In order to leave comments, you need to log in
How to organize the process of checking user authorization in php scripts?
What is the best way to check if a user is authorized when a certain script is run that needs user authorization?
Answer the question
In order to leave comments, you need to log in
Option 1: close the script from access through basic authorization using a web server.
Option 2: use the session system
Option 3: write the authorization token in the cookie (encrypted to prevent forgery)
if
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question