php - Code igniter native session namespace -
https://github.com/appleboy/codeigniter-native-session/blob/master/libraries/session.php
if run multiple applications on same site, please modify your_application/config/session.php file line:
// session namespace $config['sess_namespace'] = 'your_application_name';
in setup run same application across different sub domains. apply me? or multiple applications running on same domain?
it depends on have in $config['cookie_domain']
.
by default (if don't specify), php set domain domain of current request meaning session cookie created domain.com sent www.domain.com , every other higher level subdomains (see $domain parameter).
if using "main" domain (one segment + tld, ie.: domain.com) might need redirect traffic subdomain (like www) before set cookies, or can of course of study utilize sess_namespace
setting.
php codeigniter session
No comments:
Post a Comment