Please add code // add this code header('Location: index.php'); after the below code you have written //Unset the variables stored in session unset($_SESSION['SESS_MEMBER_ID']); unset($_SESSION['SESS_FIRST_NAME']); unset($_SESSION['SESS_LAST_NAME']); in your "logout.php" file, and you are done. Regards, Anil On Thu, 30 Sep 2010 08:40:17 +0530 wrote > Hi all, My sample project opens "index.php" page for user login. On successful login it opens "member-index.php". When "Logout" link on "member-index.php" is clicked, it opens "logout.php" which has a link for login again. Please advise how can I avoid displaying "logout.php" and directly go to "index.php" when clicking "Logout" link on "member-index.php". "member-index.php" - Code ========================= Member Index Welcome My Profile | Logout This is a password protected area only accessible to members. "logout.php" - Code =================== Logged Out Logout You have been logged out. Click here to Login Thanks Shan Anil Nautiyal Web Developer Rubico IT Pvt Ltd. Contact:+9109319038412 [Non-text portions of this message have been removed]