dsgo31121 2019-04-12 13:02
浏览 78

Codeigniter在本地mamp上升级2.0.2到3.1.10会话问题

I'm updating my Codeigniter. I've deleted de system folder and replaced it with the new one. I've followed the Upgrading from 2.2.x to 3.0.x instructions. These are my new settings for the session:

$config['sess_driver']      = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration']  = 0;
$config['sess_save_path']   = APPPATH.'/sessions';
$config['sess_match_ip']    = FALSE;

$config['sess_time_to_update']     = 300;
$config['sess_regenerate_destroy'] = FALSE;

$config['cookie_domain']   = '';
$config['cookie_path']     = '/';
$config['cookie_secure'    = FALSE;

I use:

  $newdata = array(
          'username'  => $member->email,
          'email'     => $member->member_id,
          'logged_in' => TRUE
  );

  $this->session->set_userdata($newdata);

I can print user, email after the set_userdata, but when I redirect to the default page in my admin, I get

$_SESSION empty

(except for the __ci_last_regenerate )

The folder is "OK"(I can see the new session).

I'm using MAMP PRO 5.3 with on port 8890 for ssl. I've tried database driver with same results.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog
    • ¥15 Excel发现不可读取的内容