Skip to content

Instantly share code, notes, and snippets.

@MahdiMajidzadeh
Created February 29, 2016 10:41
Show Gist options
  • Save MahdiMajidzadeh/05a06f7cc2624b119e48 to your computer and use it in GitHub Desktop.
Save MahdiMajidzadeh/05a06f7cc2624b119e48 to your computer and use it in GitHub Desktop.
Best Codeigniter session setting
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 0;
$config['sess_save_path'] = BASEPATH . 'cache/session/';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 0;
$config['sess_regenerate_destroy'] = FALSE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment