News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

Redirection Limit? Can't Load page?

Started by sixthcrusifix, January 13, 2006, 02:15:39 AM

Previous topic - Next topic

sixthcrusifix

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!?
Visite me website at http://www.sixthcrusifix.com

webzone (archived)

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.

sixthcrusifix

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!?
Visite me website at http://www.sixthcrusifix.com