Error 310 (net::ERR_TOO_MANY_REDIRECTS), reintalled server, browser
<p>Could you please explain what to do with this error? Everything was working fine and than I just got that error. I've installed the HTTPWatch to check what requests are made, but it doesn't show anything. Seems that there is some problem in the header of my website, because any page is redirected to particular one(to login.php which is included as a reference in the header of the website). But I didn't change the code before it stopped working. I've already reinstalled webserver and browser. Nothing helps(... I will very appreciate any kind of help</p>

<p>On the page to which allte pages ate redirected I have only form:</p>

<pre><code>    &lt;form name="myForm" method="get" action="checklogin.php" style="margin:10px 50px 100px; "&gt;
            &lt;tr&gt;&lt;td&gt;Username:&lt;/td&gt; &lt;td&gt;&lt;input name="myusername" type="text"&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;Password: &lt;/td&gt;&lt;td&gt;&lt;input name="mypassword" type="password"&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;input type="Submit" value="Login"&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;/form&gt;
</code></pre>

<p>And the next page checklogin.php:</p>

<pre><code>  &lt;?php
session_start();
$con=mysqli_connect("localhost","root","","moviegallary") or die('Could not connect: '. mysqli_connect_error());
$myusername=$_GET['myusername'];
$mypassword=$_GET['mypassword'];
$sql="SELECT * FROM user WHERE username='$myusername' and password='$mypassword'";
    $result=mysqli_query($con,$sql) or die(mysqli_connect_error());
$count=mysqli_num_rows($result);
if ($count==1)
{
    $_SESSION['myusername']=$myusername;
    $_SESSION['mypassword']=$mypassword;
    $_SESSION['start'] = time(); // taking now logged in time
    $_SESSION['expire'] = $_SESSION['start'] + (5 * 60) ; 
    include 'movies_list_admin.php';
    }

}
</code></pre>
