Actually I beg to differ.
The upgrade documentation has stated for a long time never to overwrite your config-inc.php
2) Upload all files - except config-inc.php, unless you modified it from the ZIP file - to
your server. You do not need install.php for an upgrade.
But yes your right if you overwrite your config file you do not have any cookie entries as the new install file populates that for you.