简体   繁体   中英

Disable automatic session save in Codeigniter (duplicating a Codeigniter project to shared hosting)

I have a running system on VPS server, but I need to make a copy of it on another shared hosting server. I have copied all files to new shared hosting server. But after running my system, I am getting exception:

Session: Configured save path '' is not a directory, doesn't exist or cannot be created.

How can I fix this?

As I am using Codeigniter 3 and PHP 5.6 version.

In config/config.php

Replace: $config['sess_save_path'] = NULL;

With: $config['sess_save_path'] = sys_get_temp_dir();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM