First you need to make sure that your logout function is working properly. To verify this, click the back button, then click refresh. If you still see the details you should not bee seeing, there is something wrong with you logout function.
Next, you need to inspect (and change the) value of session_cache_limiter(). A value of nocache is the safest one and assures the browser does not cache the page; trying to access the page via back button is impossible.
You can also change the value of session.cache_limiter in php.ini.
Edit ----
You can set session.cache_limiter by calling session_cache_limiter() before calling session_start()
session_cache_limiter( 'nocache' );
session_start( );
Not recommended method is to edit the PHP.ini file. You should add this line (or edit it if it already exist):
session.cache_limiter = nocache