CodeIgniter Forums
session values get updated - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: session values get updated (/showthread.php?tid=25412)



session values get updated - El Forum - 12-11-2009

[eluser]yogesh_CI[/eluser]
Hi all,

I have two application when I login in both in two instances of same browser(or using different tabs of the browser) the first application where I logged in fistly whose seesion values get change with the new seesion values of the second applications where i have logged in last.

Please help me on this.

Thanks in advance.


session values get updated - El Forum - 12-11-2009

[eluser]Cro_Crx[/eluser]
In the config file change the cookie's name!

Code:
$config['sess_cookie_name'] = 'ci_session';

If they are both ci_session then you'll get the problems your having.


session values get updated - El Forum - 12-11-2009

[eluser]yogesh_CI[/eluser]
Thanks for replay

This works but after some time(2 or 5 min) session values get updated again.

Is any other setting need to be change.

These are my settings in config.php

$config['sess_cookie_name'] = 'ci_session_CI';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions_CI';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;

Thanks again.