When I successfully login an extra function.session-start is displaying and how to check session for sign-in-action page
<p>I have a sign-in-action-form page which accept username and password from sign-in-form. Now most of things are working fine like on sign-out if I press back button logout display and session is destroyed. But I am facing a very strange problem. When I login and if login is successful a link <code>function.session-start</code> is shown on this page. I have not make any <code>href</code> like this I don't know from where this link come but it is disturbing my page. What is this error and how I can remove it. Second thing is there any method to check session for this page. I know there would be, but listen we are starting session and assigning value to session variable when our username and password are valid and if I apply checking for this page on the onload event it will show logged out because onload I have not started session done some thing like this. I don't know much about this. But I think I have explained my problem.</p>

<pre><code>sign-in-action-form.php
</code></pre>

<p>
    
    

<pre><code>                $con=mysql_connect("localhost","root","");
                if(!$con)
                {
                die('Could Not Connect:'.mysql_error());
                } 

                mysql_select_db("tcs",$con);

                $usr=$_POST["username"];                 //pick username from login page
                $pwd=hash('sha1',$_POST['password']);    //pick password from login page and use hash algorithm to encrypt it

                $query="select * from employee where Username='$usr' and Password='$pwd'";  //serch that single row in which both r found
                $result=mysql_query($query,$con);


                    if ($result) 
                    {

                                $row=mysql_fetch_array($result);

                        if (($row["Username"]==$usr) &amp;&amp; ($row["Password"]==$pwd))
                        {
                                session_start(); 
                                $_SESSION['employee']['id']=$row['User Id'];
                                $_SESSION['employee']['username']=$row['Username'];


                                echo "&lt;font color=red&gt;"."&lt;h3 align=center&gt;"."Welcome ".$_SESSION['employee']['username']."&lt;/h3&gt;"."&lt;/font&gt;";
                                echo "&lt;br /&gt;"."&lt;a href='upload_file.php'&gt;"."&lt;font color='white'&gt;"."&lt;h4&gt;"."Up-Load Files"."&lt;/h4&gt;"."&lt;font&gt;"."&lt;/a&gt;";
                                echo "&lt;br /&gt;"."&lt;br /&gt;"."&lt;a href='list_files.php'&gt;"."&lt;font color='white'&gt;"."&lt;h4&gt;"."List All Up-Loaded Files"."&lt;/h4&gt;"."&lt;font&gt;"."&lt;/a&gt;";

                        }

                        else
                        {
                                echo "Login Not Successfull";
                        }

                    }
}

else
{
echo 'Error! Username &amp; Password were not sent!';
}

?&gt;

&lt;/font&gt;
&lt;a  href="logout_file.php"&gt;&lt;font color="white"&gt;&lt;h3 align="right"&gt;Sign Out&lt;/h3&gt;&lt;/font&gt;&lt;/a&gt;
&lt;font color="white"&gt;

&lt;/body&gt;
&lt;/html&gt;




 session.php

    &lt;?php
    session_start();
    if(!isset($_SESSION['employee']))
    {
        echo "Your are Logged Out";
        exit;
    }   

else
{
echo "&lt;blink&gt;"."Welcome Mr.".$_SESSION['employee']['username']."&lt;/blink&gt;";
}
?&gt;
</code></pre>
