简体   繁体   中英

Session is not working in codeigniter 3 on php version 5.2

I am using ci-3 latest stable version . It is working fine on my xammp. But on live server it is not working i checked the php version which is 5.2+ .

please advise me somehow i can use this setup on 5.2.

it is giving me following error.

A PHP Error was encountered

Severity: Warning

Message: mkdir() [function.mkdir]: No such file or directory

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: /home/content/02/8784902/html/devscript/gallerytobedeleted/application/controllers/Welcome.php

for codeigniter 3

PHP version 5.4 or newer is recommended.

make a folder cache in the project root and set config as

$config['sess_save_path'] = BASEPATH . 'cache/';

give cache directory write permission

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