Không có ảnh

Cài đặt nơi lưu trữ session trong CodeIgniter – CI

06/03/2018 Nosomovo 0

CodeIgniter – Ci hỗ trợ 2 cách lưu trữ session là lưu trữ dạng file và lưu trữ trong databse. 1. Lữu trữ session dạng file: Trong file config.php (application/config/config.php) chúng ta chỉnh như sau: $config[‘sess_driver’] = ‘files’; //Hình thức lữu trữ session $config[‘sess_save_path’] =BASEPATH . ‘cache/sessions/’; //Đường dẫn lưu