Welcome Guest, Not a member yet? Register   Sign In
Session Class -> sess_destroy not removing session
#12

[eluser]CroNiX[/eluser]
[quote author="Bart v B" date="1371055551"]
Code:
if(!isset($is_logged_in) || $is_logged_in !== TRUE)
            {
                redirect('web_public/index');
                die();
            }
Why in the world are you letting your script go dead?
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:

This language construct is equivalent to die().


Messages In This Thread
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 12:35 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 12:56 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 01:07 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 01:14 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-31-2012, 08:03 AM
Session Class -> sess_destroy not removing session - by El Forum - 10-31-2012, 12:10 PM
Session Class -> sess_destroy not removing session - by El Forum - 06-10-2013, 06:06 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-10-2013, 07:36 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 09:42 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 09:45 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 10:59 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB