Re: Re: More questions about SESSION use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edmund Hertle wrote:
2009/2/1 Terion Miller <webdev.terion@xxxxxxxxx>

This is how it was originally written:
if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] !=
 true){
    header ("Location: LogOut.php");
    $_SESSION['user']=$UserName;
    $_SESSION['AdminID']=$AdminID; <--*I added this one originally the
script only used 'user' and 'AdminLogin'* but passed them in urls
}

Those two lines after header() will not be executed.

Yes they will because there is no 'exit'.

Header is just a function call, if you want to stop processing you have to do it yourself.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux