title: cant undrstand the error :Access denied for user 'Pratik'@'localhost' (using password: NO) got in php
body: <p>firstly i just clearify the problem.
  i am testing the page of login of my website.
  so i have two login files for testing that both contain same code but both are save in different place named "signin.php" &amp; "login.php" resp.</p>
  
  <p>the problem is when i try to login from "signin.php" which located in root folder(www) gives an error:Access denied for user 'Pratik'@'localhost' (using password: NO).in this i use session.</p>
  
  <p>when i try to login from "login.php" which is located in "c:\Temp\" folder runs sucessfully. &amp; create session of username as per my code.</p>
  
  <p>now i try "signin.php" again for login, then this time it login sucessfully.
  but when session expire. &amp; i try to login from "signin.php" again it show above error again.</p>