Codeigniter停止跨域会话

I have two domains. 1. billing.test.org 2. test.org

test.org is generally use for customer login and billing.test.org is using for application administrator Scenario :

test.org have an iframe in which its showing billing.test.org so whenever i am logged in via test.org and then going to open billing.test.org in new tab then its showing same logged in person information which is not good for me. So anyone have idea or something which can help me out to troubleshoot this issue ?

I have already did my homework but can't get perfect solution

My Config file have below information

$config['cookie_prefix']    = "";
$config['cookie_domain']    = "test.org";
$config['cookie_path']      = "/";
$config['cookie_secure']    = FALSE;
$config['sess_cookie_name']     = 'ci_session';
$config['sess_expiration']      = 7200;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie']  = TRUE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']      = 'ci_sessions';
$config['sess_match_ip']        = TRUE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update']  = 300;

Issue : if user login via test.org then it should not open on billing.test.org until user login manually

All suggestions are appreciated.

Thanks to all in advance.

You need a separate (session) configuration for your billing.test.org site.
Ideally, different sess_cookie_name and sess_table_name and for your billing site, set the cookie_domain to 'billing.test.org'.

On another note, you seem to be using CodeIgniter 2.x, which has been abandoned for over a year now. You should upgrade to version 3 ASAP.