zhaozhenguo87 发表于 2016-1-15 09:50:01

用的3.0版本session加载报错

不知道什么原因我手动自动加载session都报错,用的是阿帕奇环境,php5.4版本,框架3.0,请指点页面错误如下
Internal Server ErrorThe server encountered an internal error ormisconfiguration and was unable to completeyour request.
Please contact the server administrator atadmin@phpStudy.net to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be availablein the server error log.


代码很简单

<?php

class NewsCtlr extends CI_Controller{

        public function __construct(){
                parent::__construct();
                //$this->load->library('Session');
               
        }


        public function viewlist(){
                //$this->load->view('news/list.php');
                echo 'aaaa';
                //echo $this->session;
        }
}

?>


zhaozhenguo87 发表于 2016-1-15 10:00:14

找到原因了,php.in中session是默认关闭的,打开就好了:(
页: [1]
查看完整版本: 用的3.0版本session加载报错