alarik149 Posted March 13, 2006 Share Posted March 13, 2006 is there any way of stoping someone refreshing a page.I mean the only way for that page to load again is to enter the link again. Link to comment https://forums.phpfreaks.com/topic/4877-not-refreshing/ Share on other sites More sharing options...
Steveo31 Posted March 14, 2006 Share Posted March 14, 2006 Hmm... maybe something like this:[code]session_start();if(empty($_SESSION['this_page_unique'])){ $_SESSION['this_page_unique'] = rand(0, 10000000); //show the rest of the page here}else{ echo "Go back. You cannot refresh the page.";}[/code]As far as I know there's no Javascript that allows this. I could be wrong though. Link to comment https://forums.phpfreaks.com/topic/4877-not-refreshing/#findComment-17215 Share on other sites More sharing options...
phporcaffeine Posted March 14, 2006 Share Posted March 14, 2006 Java Script can prevent a META refresh but not disable the BHO in the browser. Even then, if the client has JS turned off, all is lost.PHP can help here with careful $_SESSION // $_COOKIE planing Link to comment https://forums.phpfreaks.com/topic/4877-not-refreshing/#findComment-17226 Share on other sites More sharing options...
alarik149 Posted March 14, 2006 Author Share Posted March 14, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Java Script can prevent a META refresh but not disable the BHO in the browser. [/quote]what does BHO mean?I`m testing the no-refresh script.i`ll let you know if I don`t run into more trouble.Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/4877-not-refreshing/#findComment-17355 Share on other sites More sharing options...
alarik149 Posted March 14, 2006 Author Share Posted March 14, 2006 thanks a lot people:) it works.u are the greatest :) Link to comment https://forums.phpfreaks.com/topic/4877-not-refreshing/#findComment-17370 Share on other sites More sharing options...
shanker Posted November 28, 2008 Share Posted November 28, 2008 i think there is no way other than this . you have to reload or press refresh button to refresh the page.==========shanker[url=http://www.sexxat.com/livechat.html]Visit Sexxat.com - Instant Social Sex Networking and Amateur Video Chat Rooms[/url] Link to comment https://forums.phpfreaks.com/topic/4877-not-refreshing/#findComment-701224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.