简体   繁体   中英

How to share session between two CodeIgniter applications in same domain

My Project Folder structure:

=>TestProject (Main Folder)
     - applicationOne
     - applicationTwo

How to use applicationOne session to applicationTwo directory?

I am not sure, but you have to point session path to same directory in both sub applications in below code https://github.com/bcit-ci/CodeIgniter/blob/develop/application/config/config.php#L377

$config['sess_save_path'] = 'path_of_session_directory'

and make sure your cookie domain is same in both application

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM