# PHP: Temporarily disable history logging

**URL:** <https://forum.kirupa.com/t/php-temporarily-disable-history-logging/310868>\
**Category:** programming\
**Created:** [June 21, 2010, 6:33pm UTC](https://forum.kirupa.com/t/php-temporarily-disable-history-logging/310868 "2010-06-21T18:33:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thalamus](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Post date:** [June 21, 2010, 6:33pm UTC](https://forum.kirupa.com/t/php-temporarily-disable-history-logging/310868/1 "2010-06-21T18:33:43Z")

</div>

Hello:

Is there a way to “turn off” history in PHP (or JS) temporarily for a page and then re-enable for next page?

I’m using echo(‘location.replace(" (_URL here_) ")’);  
Back button history shows 2nd address only,  
but Show All History in Mozilla-based browsers is showing both addresses, and I’m exploring workarounds.
