I want to use same directory (for 2 project) for codeigniter "files" session driver. Both projects are in same server.
project 1 save path settings
$config['sess_save_path'] = APPPATH.'session_data';
project 2 save path settings
$config['sess_save_path'] = $_SERVER['DOCUMENT_ROOT'].'/project1/application/session_data';
This is working locally but not working in production server. Whats wrong there? My "session_data" directory permission is "755". 777 tested but not work
Store your session in DB, and use the same DB for both projects.
Codeiniter 2+:
Codeiniter 3+:
Codeigniter 2 MySQL:
Codeigniter 3 MySQL:
Just Make sure your $config['encryption_key'] is same for both projects.