php - Fatal error: session_start() after upgrading to Codeigniter 3 -


i upgraded codeigniter 2 3 , error cas library:

a php error encountered  severity: error  message: session_start() [function.session-start]: failed initialize storage module: user (path: c:\windows\temp)  filename: cas/client.php  line number: 3588  backtrace: 

it has session, guess ci3.0 handles differently ci2.0.

i have following in config.php

$config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = null; $config['sess_match_ip'] = false; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = false 

;

any highly appreciated. thanks.

new:

i did clean ci3.0.4 install , seems problem cas authentication library: https://github.com/eliasdorneles/code-igniter-cas-library

it worked ci 2.x, not ci3.0. if not load cas module, works fine regard session (i have no problem setting sessions, etc). once load cas there problem line session_start() @ cas/client.php. ideas?

you have not configured sess_save_path make sure folder chmod 700

$config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = fcpath . 'application/cache/'; $config['sess_match_ip'] = false; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = false; 

the autoload session

$autoload['libraries'] = array('session'); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -