How to destroy session with browser closing in codeigniter

前端 未结 9 1184
陌清茗
陌清茗 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;
    
    0 讨论(0)
  • 2020-12-06 07:38

    in $config.php file

    change  $config['sess_expiration'] = 7200;
    

    to

    $config['sess_expiration'] = 0;
    
    0 讨论(0)
  • 2020-12-06 07:39

    Have a look at this, and see if this helps.

    https://github.com/EllisLab/CodeIgniter/wiki/PK-Session

    0 讨论(0)
提交回复
热议问题