K
K
Konstantin B.2016-05-23 14:31:06
Yii
Konstantin B., 2016-05-23 14:31:06

Check if user is authorized in yii application via native script?

There is an application on yii, there is a need to check whether the user is authorized without using the components of the application itself. I am writing here because I have never worked with Yii, now I'm trying to figure it out myself, but for now it's all a lot of time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-05-23
@karminski

Can you use the application core? Then \Yii::app()->user->isGuest

Z
Zhandos M, 2016-05-23
@Zhandos

Read the code of the yii\web\User component, check the cookies, as I know there is a cookie check

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question