Max_77 Posted September 14, 2010 Share Posted September 14, 2010 Hello!I have lost my settings.inc.php file with every data to my database,I still have the database. And have reset all data, cookie_key etc, but not this one: define('_COOKIE_IV_', 'XXXXXXXX');My problem is:What is that cookie IV?And how do i reset it?Where in the database can i find this? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 14, 2010 Share Posted September 14, 2010 That value is generated with this line in createDB.php in your install folder: array('_COOKIE_IV_', Tools::passwdGen(8)), I would create another script to run that function to get the value and then manually place the valuein my setting.inc.php file. Link to comment Share on other sites More sharing options...
Max_77 Posted September 15, 2010 Author Share Posted September 15, 2010 Hello!Some more questions.1. how do i execute that script? Just put it in root or in some folder?2. Dont this run over my present database?A little confused Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 15, 2010 Share Posted September 15, 2010 I would write the script and run it from the root. It is not going to do anything to your database, it is going to generate the value for you.Let me test to see if I can write the script to perform the operation....Ok, here is the code for the script: <?php include_once(dirname(__FILE__).'/classes/Tools.php'); echo Tools::passwdGen(8); ?> Call it passwdGen.php and place it in your root.Run it from the root and take the value it shows and place it in your setting.inc.php for the COOKIE_IV value. Link to comment Share on other sites More sharing options...
Max_77 Posted September 15, 2010 Author Share Posted September 15, 2010 Okej, Thanks!I will try it out, i be back later with more information about how it has is going 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