|
控制器代码: $this->load->library('session');
$user=array('id'=>3,'name'=>'jack');
$this->session->set_userdata('user',$user);
结果发生错误
A PHP Error was encounteredSeverity: Warning
Message: mkdir() [function.mkdir]: Invalid argument
Filename: drivers/Session_files_driver.php
Line Number: 117
Backtrace:
File: E:\amp\apache\htdocs\mvc\application\controllers\user.php
Line: 75
Function: library File: E:\amp\apache\htdocs\mvc\index.php
Line: 292
Function: require_once
An uncaught Exception was encounteredType: Exception
Message: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.
Filename: E:\amp\apache\htdocs\mvc\system\libraries\Session\drivers\Session_files_driver.php
Line Number: 119
Backtrace:
File: E:\amp\apache\htdocs\mvc\application\controllers\user.php
Line: 75
Function: library File: E:\amp\apache\htdocs\mvc\index.php
Line: 292
Function: require_once
|
|