Форуми / Cotonti / General / Config, site_id and secret_key

RaisenBran
#1 10.08.2011 15:45

Just wondering what this really does and if I can get an example:

 

$cfg['site_id'] = 'Some unique string specific to your site';
$cfg['secret_key'] = 'Secret key used for authentication, make it unique and keep in secret!';
pieter
#2 10.08.2011 16:59

Open your config.php of an installed Cotonti version.

There you can find an example.

... can we help you ...
GHengeveld
#3 12.08.2011 21:34
Site ID is used as the name of the cookie, so it's public. It must be unique so it doesn't collide with other cookies on the same domain. The secret key is used as a salt (google it) for password encryption. It makes passwords harder to crack in case your database is compromised. For this reason you should keep it secret.
RaisenBran
#4 13.08.2011 19:48

thanks koradhil!! smiley