Session Class -> sess_destroy not removing session - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Session Class -> sess_destroy not removing session (/showthread.php?tid=55417) Pages:
1
2
|
Session Class -> sess_destroy not removing session - El Forum - 06-12-2013 [eluser]CroNiX[/eluser] Code: $is_logged_in = $this->session->userdata('is_logged_in'); Session Class -> sess_destroy not removing session - El Forum - 06-12-2013 [eluser]CroNiX[/eluser] [quote author="Bart v B" date="1371055551"] Code: if(!isset($is_logged_in) || $is_logged_in !== TRUE) die() stops everything. An exit() should be better here.[/quote] In PHP, exit() === die(). Check the PHP userguide. They reference each other. http://php.net/manual/en/function.die.php Quote:This language construct is equivalent to exit(). Quote:die — Equivalent to exit http://www.php.net/manual/en/function.exit.php Quote:Note: |