Sharing session between wildcard subdomain |
Hi everyone, I'm in troublesome situation and can't figure out how to solve:
I'm creating a localhost project and using wildcard subdomains to change between languages: localhost:4001 for main language and subdomain en.localhost:4001 for English and fr.localhost:4001 for French. Everything work OK but when I login using AAuth, it not work on subdomains but on localhost:4001 only. I tried another session function and recognized all function using session not work. Here is my config, I'm using CI 3.1.2: $config['encryption_key'] = 'k5ogwL4ThZ5TpSsnUjveUp9gLaoFqbLX'; $config['sess_driver'] = 'database'; $config['sess_cookie_name'] = 'tcms_cookie'; $config['sess_expiration'] = 0; $config['sess_save_path'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE; $config['cookie_prefix'] = 'tcms_'; $config['cookie_domain'] = '.localhost:4001' ; $config['cookie_path'] = '/'; $config['cookie_secure'] = FALSE; $config['cookie_httponly'] = FALSE; $config['csrf_protection'] = FALSE; $config['csrf_token_name'] = 'csrf_test_name'; $config['csrf_cookie_name'] = 'csrf_cookie_name'; $config['csrf_expire'] = 7200; $config['csrf_regenerate'] = TRUE; $config['csrf_exclude_uris'] = array(); So please give me any suggestion how to fix it. I will appreciate for your help. |
Messages In This Thread |
Sharing session between wildcard subdomain - by AzrielOmega - 11-14-2016, 09:32 PM
RE: Sharing session between wildcard subdomain - by milan alphansotech - 11-14-2016, 10:27 PM
RE: Sharing session between wildcard subdomain - by AzrielOmega - 11-14-2016, 11:46 PM
RE: Sharing session between wildcard subdomain - by AzrielOmega - 11-15-2016, 01:36 AM
RE: Sharing session between wildcard subdomain - by Narf - 11-15-2016, 03:09 AM
RE: Sharing session between wildcard subdomain - by AzrielOmega - 11-16-2016, 06:01 AM
|