Hello,
I just copied my instance of Prestashop from one domain to another, to make some tests.
I manually copied the site directory and the db(using phpmyadmin). I left the tables for statistics, indicated in the backoffice in the "DB Backup" section.
Imported the db via phpmyadmin.
I modified the PS_DOMAIN fields in the ps_configuration table, changed the site url in ps_shop_url, and modified the settings.inc.php file with the new DB data.
I managed to make the site show and "work", but now i have a problem with logins in site and in backoffice.
In the site i can login with a test customer account and password, I get redirected to main page, but my customer account doesn't remain logged in after this, i can do the login. No error message, the data is correct.
In backoffice I put mail and password, they both correct, I got a page reload but then it shows again the login form with just "&redirect=AdminDashboard" added in the url. No error message, the data is correct.
I checked the forum and tried the solutions in it, but it doesn't seem to work. I tried to test the logins in Mozilla, Chrome and Safari.
Prestashop version "1.6.1.3".
Please help me.
Thanks in advance.
SOLUTION/ERROR FOUND:
it was the field "domain" in the cookie.php file, it was hardcoded into the wrong url. Corrected it to the new url and all works again.
Can someone please change this topic to solved?
Thank you.