I have a problem.I have a login page which is login.php and a page where login are verified which is verify_login.php.
when password and user id are entered in login.php,it will go to verify_login.php to verify it and from there,if the user ticked on the remember me checkbox,cookies are set so that user will no need to enter again the user and password.
the problem is the login.php are upper directory and the verify_login.php are lower directory.thus, in the login.php, I have condition whereby if cookie are set, it will automatically login in.I have been told that the cookie need to be set in upper directory, so that the the lower directory can read the cookie.
how to solve this problem because all the while the login page is upper directory and the verify process is lower directory.how to make the login.php to be able to read the cookies existing?
when password and user id are entered in login.php,it will go to verify_login.php to verify it and from there,if the user ticked on the remember me checkbox,cookies are set so that user will no need to enter again the user and password.
the problem is the login.php are upper directory and the verify_login.php are lower directory.thus, in the login.php, I have condition whereby if cookie are set, it will automatically login in.I have been told that the cookie need to be set in upper directory, so that the the lower directory can read the cookie.
how to solve this problem because all the while the login page is upper directory and the verify process is lower directory.how to make the login.php to be able to read the cookies existing?