Forums / Cotonti / General / Config, site_id and secret_key

RaisenBran
#1 2011-08-10 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 2011-08-10 16:59

Open your config.php of an installed Cotonti version.

There you can find an example.

... can we help you ...
GHengeveld
#3 2011-08-12 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 2011-08-13 19:48

thanks koradhil!! smiley