Answer the question
In order to leave comments, you need to log in
Why is decommissioning happening?
I have a site with registration / authorization - everything is as usual, but I noticed one problem: I log in and after some time of inactivity I log out (I didn’t notice, but for example, I was logged in in the evening, but not in the morning). Here is the line that logs in - everything is like in the docks:
Yii::$app->getUser()->login($user, $rememberMe ? 3600 * 24 * 30 : 0); // запоминаем аж на 30 суток!!!
Answer the question
In order to leave comments, you need to log in
write permissions, the presence of a session - that's what you need to check. Sometimes, when transferring, the user on whose behalf the files were created does not have access. Check.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question