Jumpy09 Posted May 25, 2010 Share Posted May 25, 2010 <script> $(document).ready(function() { $("#shoutbox").load("shoutbox.php"); var refreshId = setInterval(function() { $("#shoutbox").load(\'shoutbox.php\'); }, 5000); }); </script> <div>Shoutbox</div> <div id="shoutbox" style="width:225px;height:130px;overflow:auto;"> </div> The problem here is that I am using a paging system with $_GET['blah']; and this is setting my $session->referrer to shoutbox.php. I need it to stop, it's getting aggravating that every redirect ends up going to the shoutbox. I don't know any other way to do what I need, as the shoutbox needs to update constantly to keep new messages up. I wouldn't mind direction toward something else, or a fix to this. I don't really know how to fix it. Link to comment https://forums.phpfreaks.com/topic/202880-auto-refresh-external-page/ Share on other sites More sharing options...
Adam Posted May 28, 2010 Share Posted May 28, 2010 How about $_SERVER['REFERER']? We're unable to see the $session object you're using there, so can't say how it's populating the 'referer' property. Link to comment https://forums.phpfreaks.com/topic/202880-auto-refresh-external-page/#findComment-1064611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.