普通网友 2015-01-02 13:23
浏览 35

Codeigniter 3会话错误500

I'm having problems with sessions in the CI 3 .

I'm having the "error 500" every time that users login on my website.

In the past I had same problems because I created on login sessions and the cookie size was only 4k. Becouse of this, today I use database to store my sessions and it seems that I still have the cookie size limite problem.

I disable the creation of some sessions ( randomly sessions to make sure the problem is not of specifies session ) and the problem (error 500) stop. When I uncomment all sessions, I get the error 500.

Why this is happening if I use database sessions and the filed are TEXT?

Part of the code:

$this->session->set_userdata('l_usr', $user_id);
$this->session->set_userdata('l_usr_email', $user_email);
$this->session->set_userdata('l_usr_login', $user_login);
$this->session->set_userdata('l_nivel', $user_nivelacesso);
$this->session->set_userdata('l_usr_genero', $user_genero);
//$this->session->set_userdata('token', $token_id);
$this->session->set_userdata('l_usr_pic_perfil', "usuarios/".$user_id."/perfil/".$user_foto_perfil);
//$this->session->set_userdata('l_usr_pic_avatar', "usuarios/".$user_id."/perfil/".$user_foto_avatar);

Tanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
    • ¥15 Centos / PETSc / PETGEM
    • ¥15 centos7.9 IPv6端口telnet和端口监控问题
    • ¥120 计算机网络的新校区组网设计
    • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
    • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
    • ¥20 海浪数据 南海地区海况数据,波浪数据
    • ¥20 软件测试决策法疑问求解答
    • ¥15 win11 23H2删除推荐的项目,支持注册表等
    • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法