Jump to content

[SOLVED] Prestashop, multiple servers


Recommended Posts

I need to regenerate COOKIE_IV, COOKIE_KEY since I'm installing the same modified version of prestashop at several different servers. I've found how to generate them and password but I cant login so I guess the problem now is the secure_key (in table ps_employee).

Copied the code from /admin/password.php and it works:


   $employee = new Employee();
   $employee->getByemail('[email protected]');

   $pwd = Tools::passwdGen();
   $employee->passwd = md5(pSQL(_COOKIE_KEY_.$pwd));
   $employee->last_passwd_gen = date('Y-m-d H:i:s', time());
   $result = $employee->update();

   echo $pwd;


Share this post

Link to post
Share on other sites

  • 3 months later...

I have a similar problem, I make everything, to create prestashop in multiple servers, but I need that if I, like customer, I login in one shop, then when I go to other shop I still logged in, not need to login again...

Can you give me an Idea?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More