I need to redirect users to a different page after 12 seconds,but only one time. By means if they back to the previous page they will not be redirected. I am trying to use cookies in this like this :
<script type='text/javascript'>
$(document).ready(function(){
if($.cookie('Visited') != 'yes'){
$.cookie('Visited', 'yes', { path: '/', expires: 1 });
window.location.href = "http://www.example.com/";
}
});
</script>