Hi Nathan,
Well good question.
if you using session variable to store your logged information you have to
write the bit of code in login page. the same for cookie too.
in login page add this code . i.e your session variable is LOG_info
if($_SESSION['LOG_info']){
$_SESSION['LOG_info'] = "";
}
so whenever you goto login page your session will expire; so you must login
to view the main page.
Thanks,
Muthukumar Selvarasu,
Project Manager (Web Development),
Webmasters Ltd.
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of sivsenxml_3969
Sent: Wednesday, December 05, 2007 5:34 AM
To: [email protected]
Subject: [php-list] login problem
Hi all,
I have a problem in Login page. I have created a login page with mysql.
when the user enter its username and password, if it is matches with
database it will redirect to the project main page. Here is the
problem occurs. From the main page again I go back to the previous
page (i.e. login page) using the browser navigation button. Again Iam
moving forward using the navigation button I can able to enter into
the project main page without login again.
What I need is if I go back to previous page (i.e. login page), it
will automatically gets terminate. If I click forward it will ask for
login again to enter into the project main page.
Please suggest me to solve this problem.
Thanks
Nathan
[Non-text portions of this message have been removed]