Skip to content

Instantly share code, notes, and snippets.

@thexdev
Last active October 22, 2023 19:23
Show Gist options
  • Save thexdev/f5d90ce93251e7fd81db95bc56941a29 to your computer and use it in GitHub Desktop.
Save thexdev/f5d90ce93251e7fd81db95bc56941a29 to your computer and use it in GitHub Desktop.
Solve CodieIgniter error with message: mkdir(): Invalid path and Filename: drivers/Session_files_driver.php. This usually happen on mac.
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = sys_get_temp_dir();
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment