How to disable brouser back.

Reply

Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: How to disable brouser back.

 
0
  #11
Oct 4th, 2007
well, what exactly was the problem. did you change 'username' and 'password' to your session name for those. also i didn't think about this before but when the session is destroyed the page has to be refreshed before the logout will be successful. maybe after the session is destroyed, have the page refresh

  1. echo '<meta http-equiv="refresh' content="0">';
  2.  

this should work. it did for me
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: How to disable brouser back.

 
0
  #12
Oct 7th, 2007
First, do not disable my back button. It's 2nd on my list of most hated website activities. (1st is opening new browser windows.)

Ok, now to try to understand what you're trying to do: If you want to prevent a user who logged out from seeing the information on a previous user's welcome.php page, your best bet is to tell the browser the page is out of date and needs refreshed. That way, the browser won't load the page from cache and instead load the page from the server.

I think using a "META" tag with the option "expires" (Search for "META expires" and see what comes up) is the way to go here.
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 52
Reputation: ajay_tabbu is an unknown quantity at this point 
Solved Threads: 0
ajay_tabbu's Avatar
ajay_tabbu ajay_tabbu is offline Offline
Junior Poster in Training

Re: How to disable brouser back.

 
0
  #13
Oct 8th, 2007
thanks kkeith u help me lot.I note two different thing about (gmail yahoomail)that gemail has disable back brouser as i have done in my code.But as i tould that on yahoo when we login our mail box get openand,and when we click on back button, then it comes on login page but on click forward button it will ask for login id password again for opening our mail box,here i was wrong bcoz, in yahoo when I login my mail box get open,and we click on back button, then it comes on login page and on click forward button again it will go to mail box.
So I thing what I want that is not posibal but still i will try to find some option.anyways thank you again.

Originally Posted by kkeith29 View Post
well, what exactly was the problem. did you change 'username' and 'password' to your session name for those. also i didn't think about this before but when the session is destroyed the page has to be refreshed before the logout will be successful. maybe after the session is destroyed, have the page refresh

  1. echo '<meta http-equiv="refresh' content="0">';
  2.  

this should work. it did for me
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: How to disable brouser back.

 
0
  #14
Oct 8th, 2007
i was just thinking about it and i thought you might be able to use page views as an option.
use a session variable to hold the number and when someone visits a page the count increases. if the count goes above 2 then logout will happen. i have never tested this so i have no idea if it works, but i think it might.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC