Re: why am i not getting kicked out?
| From: | Tyler Lane | Date: | Sat, 17 May 2003 19:57:25 +0000 |
| Subject: | Re: why am i not getting kicked out? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148041@lists.php.net to get a copy of this message | ||
On Sat, 2003-05-17 at 11:01, Ryan A wrote:
> Hi,
> I have this code:
>
> <?php
> session_start();
> error_reporting (E_ALL);
> include_once("configbwh.php");
>
> if(session_is_registered('user')){
> echo "The session is still registered.";
> } else {
> header("Location: co.details.php");
> echo "Ok, the session is no longer registered!";
> }
> ?>
>
> When I access this page directly at:
> http://bestwebhosters.com/co.details.php why am i not getting
> kicked back to
> co.details.php?
>
> Kindly reply,
> -Ryan
>
Its because it looks like you are redirecting to the exact same page and
getting caught in a loop. Thats a bad thing[tm].
--
Tyler Lane <tlane@lyrical.net>