PHP Logout Session

Hi gurus.

I am developing a secure site, so users will need the credentials to access it. The problem is that when a user logs out, the process is done successfully (the user is logged out).

But the user can select the back button to the entry page (the page he/she started off) and then get access to the site without logging in.
I have looked almost everywhere on the net, but no articles could help me solve this.

So gurus, how can i get around this problem?
Which one is the best solution?

Thanks for your time.

powerfull_king.
[585 byte] By [powerfull_king] at [2007-11-19 20:43:41]
# 1 Re: PHP Logout Session
Then use JavaScript's location.replace and the back button will not work.

Example:
<script language="JavaScript">
location.replace(' http://www.google.com');
</script>
PeejAvery at 2007-11-10 3:57:38 >
# 2 Re: PHP Logout Session
Thanks for your quick reply peejavery,

The code did not work. The user still has the option to click on the down arrow, right to the back button, and still has the chance to view all the past page.
One of these page can let the user access the system without logging in.

Are there any other ways of doing it?
Thanks.
powerfull_king at 2007-11-10 3:58:38 >
# 3 Re: PHP Logout Session
The code did not work.
Did you put it on every page of your viewing sequence? location.replace() does work. You just have to impliment it correctly.

If you have a form that you submit, on the page that it submits to add my code to the bottom and you will not be able to go back to the submit site. That is how location.replace() works.

If you want to clarify you can post your source code using [code] tags.
PeejAvery at 2007-11-10 3:59:31 >