Set Session Expiration Time Manually-CodeIgniter

后端 未结 9 907
粉色の甜心
粉色の甜心 2021-01-01 10:23

How can I set session expiration time dynamically in codeigniter?

For example, if a user logs in and has the role of admin, the expiration time should b

9条回答
  •  一整个雨季
    2021-01-01 10:54

    You can solve the session issue by replacing this:

    $config['sess_use_database'] = TRUE;
    $config['sess_encrypt_cookie'] = TRUE;
    

    with this:

    $config['sess_use_database'] = FALSE;
    $config['sess_encrypt_cookie'] = FALSE;
    

提交回复
热议问题