If you advise HeidiSQL to store your session usernames and passwords, it does so in your registry. More exactly, those details are stored within the key HKEY_CURRENT_USER\Software\HeidiSQL\.
If activated in your HeidiSQL preferences, (especially the auto-updates) these details are sent to heidisql.com in certain intervals:
- server types and versions
- HeidiSQL version number