Welcome Guest, Not a member yet? Register   Sign In
Session ID changing on every page request
#1

[eluser]jvuonger[/eluser]
Hello everyone,

I'm new to the CI framework and I am having troubles with the Session class. I have it autoloaded and have made all the proper configuration changes in system/application/config.php, as follows:

Code:
$config['sess_cookie_name']    = 'ci_sessions';
$config['sess_expiration']    = 3600;
$config['sess_encrypt_cookie']    = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']    = 'ci_sessions';
$config['sess_match_ip']    = TRUE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']     = 300;

What happens is the session_id is changing upon every page request even refreshing the page. It also inserts a new row in the 'ci_sessions' database on each page request. I have cookies enabled, but I can't find the cookie for my session. Any help is much appreciated!

Thanks,
James
#2

[eluser]jvuonger[/eluser]
Ooops, I had cookie variables set to some values...cleared them out and its fine now.

$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";




Theme © iAndrew 2016 - Forum software by © MyBB