D
D
dev4002016-09-18 21:10:35
PHP
dev400, 2016-09-18 21:10:35

Where is the right place to call session_start()?

Is it right to just call this function at the very beginning of index.php? While not all users are authorized.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2016-09-18
@politon

Does the session only include authorization? If yes, then in the authorization file it is possible. If, before authorization, there are some other actions, then in the index

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question