force page refresh in php
Posted on 2007-11-18
i have a pageA.php and pageB.php
to access pageB you have to login from pageA
my problem is that once on pageB i can click on the browser back and forward button and come back to pageB.
i dont know how to do this:
i want that once on pageB, pageA must have been expirein order to force a new login when clicking on the browser back and forward button.
is there some code that can do this?
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
but with no results.
please some help