Welcome Guest, Not a member yet? Register   Sign In
Codigniter: share session with subdomain & sess_time_to_update
#1

[eluser]Unknown[/eluser]
Hi!

It was a lot of questions how to share CI native sessions between subdomains or (domain && subdomain).

Everybody says that we should define $config['cookie_domain'] like this

Code:
$config['cookie_domain'] = ".example.com";

It seems to be correct answer, but... subdomain drops data on update on both domains. I mean: After the sess_time_to_update is expired all data get droped.

Code:
$config['sess_time_to_update'] = 300;

Additional info:

- CodeIgniter ver. 2.1.4
- Subdomain & domain use the same files (alias).
- $config['sess_use_database'] = TRUE;

I will be grateful for any suggestion and useful links!




Theme © iAndrew 2016 - Forum software by © MyBB