D
D
DarkByte20152018-09-21 09:35:14
Yii
DarkByte2015, 2018-09-21 09:35:14

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 суток!!!

Logged - $rememberMe = true. That's for sure. Interestingly, I don't have this problem locally. I mean that this site is deployed for development on a local machine and does not log out at all. It is the problem when the server is already deployed.
PS I'm not sure what the problem is in the code. Perhaps in some server settings, or maybe even just in my browser (chrome).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-09-21
@webinar

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 question

Ask a Question

731 491 924 answers to any question