Answer the question
In order to leave comments, you need to log in
How to check if a user is logged in?
I have a server on which I created a subdomain ooo.domain.com
and set up redirection of requests to another server through DNS
Now the task is to check whether the user is authorized or not in order to understand what content to display.
On the main domain I check like this:
if (isset($_SESSION["user"]) && !empty($_SESSION["user"]))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question