Codeigniter 3 - Access Session from Outside Codeigniter Installation

后端 未结 3 1359
半阙折子戏
半阙折子戏 2020-12-09 23:22

I can\'t seem to get session data passed from my codeigniter application back to a script in my includes folder. From what I\'ve read on other answers, I need to set my

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 23:37

    Improving on @acupajoe's answer, you don't have to copy-paste the CI index.php. Instead change the include part into this:

    
    

    Then change in index.php:

    $system_path = isset($temp_system_path) ? $temp_system_path : 'system';
    

    and

    $application_folder = isset($temp_application_folder) ? $temp_application_folder : 'application';
    

提交回复
热议问题