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” & “login.php” resp.
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.
when i try to login from “login.php” which is located in “c:\Temp\” folder runs sucessfully. & create session of username as per my code.
now i try “signin.php” again for login, then this time it login sucessfully.
but when session expire. & i try to login from “signin.php” again it show above error again.
It’s saying that you are accessing the database with
username: Pratikand an empty password.It won’t connect without any password.