FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: sixthcrusifix on January 13, 2006, 02:15:39 AM

Title: Redirection Limit? Can't Load page?
Post by: sixthcrusifix on January 13, 2006, 02:15:39 AM
When I use this at the top of my page:


if( (!isset($_COOKIE['user'],$_COOKIE['$typevalue']) || ($_COOKIE['$typevalue'] != md5("$secret") ) )  )
{

header("Location:http://crystalchasm.net/MAIN/ADMIN/login.php");
}

include("defaultcss.php");


To confirm a succecfull Admin Login, I get a redirection error that says it can't load the requested page!?
Title: Re: Redirection Limit? Can't Load page?
Post by: webzone (archived) on January 13, 2006, 04:32:10 AM
The page probably redirects to itself, which creates an infinite loop. Browsers have different expectations : some will display an error after receiving three Location: headers in a row while others will stop after 20.

If you use Firefox, you can use the LiveHTTPHeaders extension available on addons.mozilla.org to see in real time what redirections occur.
Title: Re: Redirection Limit? Can't Load page?
Post by: sixthcrusifix on January 13, 2006, 07:43:03 AM
oh cool


For some reason the error stopped when I got rid of all of my cookies. I dunno whyeither.


Now it doesn't happen, I dunno what I did but it don't happen anymore so.. hmmm

and yes, I use firefox.. who would't!?