| | |
How to disable brouser back.
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
this should work. it did for me
PHP Syntax (Toggle Plain Text)
echo '<meta http-equiv="refresh' content="0">';
this should work. it did for me
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
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.
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.
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.
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.
So I thing what I want that is not posibal but still i will try to find some option.anyways thank you again.
•
•
•
•
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
PHP Syntax (Toggle Plain Text)
echo '<meta http-equiv="refresh' content="0">';
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.
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.
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.
![]() |
Similar Threads
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
- SMART Command (Motherboards, CPUs and RAM)
- How to set landscape orientation? (JavaScript / DHTML / AJAX)
- does <img tag has disable property (HTML and CSS)
Other Threads in the PHP Forum
- Previous Thread: how can i redirect like asp
- Next Thread: Getting mysql "UNaffected" rows
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube






