Answer the question
In order to leave comments, you need to log in
Will users lose their authorization after moving the site to another server?
There is a site on yii.
Many users of the site clicked "Remember me" during authorization.
If this site is transferred to another server, will users need to re-enter their login and password for authorization, or will users not notice anything - and will they also automatically log in through cookies?
Answer the question
In order to leave comments, you need to log in
As always - a bunch of primates who can't tell a session from a cookie.
Cookies are tied to a domain (to everything at once or to some pages). So, if your domain has changed, then users will have to log in again. And if the site just moved to another hosting or server, then the authorization will not fail.
All users will have to log in again.
Due to the fact that authorization uses sessions
If your domain does not change and you transfer sessions, it will not crash.
Sessions can be stored either in the database, then there are no questions at all, or in files, in the directory specified in session.save_path
You need to copy /var/lib/php52/sess_* to the new server (if the path has not been changed to another directory or mysql/memcache).
Then they will remain logged in.
You have the answer in your question. The "Remember me" feature is implemented by setting cookies in the user's browser. And your manipulations with the server will not affect the user's browser in any way, so everyone will be able to log in successfully. Sessions specifically have nothing to do with your task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question