Answer the question
In order to leave comments, you need to log in
Where are the articles about “PHP authorization for the site” 2017/2018?
Good afternoon.
Only old articles from 2011-2013 come across.
Isn't there anything new/corrected/improved?
By the way, if the site has an action.php file that receives parameters from Ajax with index.php, then how to disable this file? Well, if you enter site.ru/action.php in the line, so that you don’t go there, but redirect to the main one, for example ...... it seems like some kind of globe was $_GLO ..... or something like that =)
Answer the question
In order to leave comments, you need to log in
Everyone has been using frameworks for a long time and do not cycle unnecessarily
Use libraries for this (example https://cartalyst.com/manual/sentry/2.1 ) and/or frameworks.
Shouldn't be "action.php" there should be one entry point.
Now it's cool to do it through Middleware (intermediary) - authorization is hung on the necessary urls in one line
. Watch the first 2 parts to understand the third part you need:
https://www.youtube.com/watch?v=VKMQwMyH3mw
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question