salt should include database
-
it seems your logic uses $table_prefix if its enabled.
So you understand, there can me multiple wp installs on one server. but, by the same logic, you should also index off the database name. so perhaps $db_name_$table_prefix – know it makes the key longer, but it is far safer.
as if 2 wp installs, have the same table_prefix, but a different db, they will clash. The default for table_prefix is wp_ , and I have several clients that use table_prefix wp_ but a different db.
I can manually add the salt via wp-config.php – I know that – but its error prone.
It makes no logical sense to use table_prefix in isolation to dbname
perhaps though, I am wrong, and you have another method if there are multiple installs, seperate mysql databases. Like on a cpanel server.
The topic ‘salt should include database’ is closed to new replies.