[eluser]Unknown[/eluser]
I have a very annoying problem.
I use session and standrard seem CI create a session at page loading. It looks like this:
Code:
array(4) { ["session_id"]=> string(32) "adbec1756192db5c29dcc5ad9dc541ed" ["ip_address"]=> string(9) "127.0.0.1" ["user_agent"]=> string(117) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1" ["last_activity"]=> int(1318836159) }
When I reload the page, I get the error: Disallowed Key Characters.
How can I solve this?
My controller:
Code:
class Start extends CI_Controller {
public function __construct() {
parent::__construct();
$this->config->load('custom_config');
}
public function index()
{
var_dump($this->session->all_userdata());
}
}
I save my session configuration in a separate config file as I install my application and can not have it in the config.php from scratch
Code:
$config["sess_cookie_name"] = "lotus-session";
$config["sess_expiration"] = 7200;
$config["sess_expire_on_close"] = FALSE;
$config["sess_encrypt_cookie"] = TRUE;
$config["sess_use_database"] = TRUE;
$config["sess_table_name"] = "sessions";
$config["sess_match_ip"] = FALSE;
$config["sess_match_useragent"] = TRUE;
$config["sess_time_to_update"] = 300;