briq Posted July 12, 2010 Share Posted July 12, 2010 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:<?php include(dirname(__FILE__).'/config/config.inc.php'); $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; ?> Link to comment Share on other sites More sharing options...
Bruno Chavez Posted October 14, 2010 Share Posted October 14, 2010 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now