How to destroy session with browser closing in codeigniter

前端 未结 9 1189
陌清茗
陌清茗 2020-12-06 06:55

Recently I have developed a web application with codeigniter. I am facing a session related problem there badly.

Problem scenario:

If user

9条回答
  •  爱一瞬间的悲伤
    2020-12-06 07:30

    Open the general config file application/config/config.php, search for $config[‘sess_expiration’]

    change

    $config['sess_expiration'] = 7200;
    

    to

    $config['sess_expiration'] = -1;
    

提交回复
热议问题