There are a few things in this file that we'll need to configure to support sessions and encryption. So, open the config/config.php
file and make the changes described in this section.
We will need to set an encryption key. Both sessions as well as CodeIgniter's encryption functionality require an encryption key to be set in the $config
array, so perform the following steps:
Find the following line:
$config['encryption_key'] = '';
Change it to the following:
$config['encryption_key'] = 'a-random-string-of-alphanum-characters';
Find the following lines:
$config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_expire_on_close'] = FALSE; $config['sess_encrypt_cookie'] = FALSE; $config['sess_use_database'] = FALSE; $config[...