Terkait dengan sessionnya CI / Code Igniter,
ada beberapa config yang jika tidak sesuai
akan muncul Error seperti contoh berikut ini:
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Invalid path
Filename: drivers/Session_files_driver.php
Line Number: 117
Backtrace:
File: C:\xampp\htdocs\ci-test\application\
controllers\login.php
Line: 7
Function: __construct
File: C:\xampp\htdocs\ci-test\index.php
Line: 292
Function: require_once
Nah untuk mengatasi error tersebut Anda, bisa mencoba ubah
file config.php yang berada di application dengan mengubah
seperti berikut ini:
$config['sess_save_path'] = sys_get_temp_dir();
Demikian selamat mencoba!
No comments:
Post a Comment