M
M
Meridian3122013-12-08 17:22:31
PHP
Meridian312, 2013-12-08 17:22:31

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

3 answer(s)
E
Eugene, 2013-12-08
@Meridian312

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)

V
Vasily, 2013-12-08
@dedik

if

No sarcasm
А если серьезно - в каждой книге по PHP есть разбор системы авторизации и на эту тему написано огромное количество туториалов и мануалов, может стоит сначала поискать в гугле прежде чем задавать вопрос?

R
Rikcon, 2013-12-08
@Rikcon

www.php-login.net

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question