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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 :) Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.