Forum Moderators: open
I was wondering if anything has changed or is there still no way to disable a refresh?
That way to disable a back button is good enough for what I want to use it for, I think.
Basically, I need it disabled because of the way our log-in is handled, if they back, they actually back into a spot there weren't in before(long story)and on a different page in my secured site, if they refresh, the refresh into this same "undesired" spot.
I really want to do this so I don't have to go back to the code that handles the log in and whatnot... cause it's a mess and I can't really change it up too much.
For the quick and dirty as to why the log in does what it does. We use 1 program with a home grown server scripting language to handle this stuff, so it calls the same program over and over, and depending whats in the POST variables, and what is stored in the db will determine the next course of action.
If they log in, variables get set and when they refresh, they go to a spot that shouldn't get to "yet". Really confusing and it'd be easier if I could just disable those 2 functions, or stop them the best I can...
The back and refresh buttons are Application functions. They work the same on every web page displayed by the browser. They are part of the browser.
Even the most elementary user knows what they do.
I wouldn't mess with that functionality one bit.
Even if a person would "back" into a section they are not ready for as you put it, it would still be better to code for that possibility and show a graceful message saying "What the h*** are you doing here? Go back to whence you came from evil spirit!" than to try and reprogram the browser.
With web based applications that is a real risk. I check for valid Session variables on every page, and if none exist the person is redirected to the login page. Period.
And, remember, the user has complete control of their logout procedure - you can't affect their willingness to just click the little X and close the browser at any time.
Make my life alot easier. The fact of the matter is, I can't control the page they "refresh" into, reason being is we are using a complete system and part of it is the web portal, now I'm basically short circuiting the portal to give a select set of people access to a way simpler version of the portal(thow the stuff they want in their face, and the stuff they don't off the page). Now when they refresh, for some reason(cause of the apache set up and the portal software) I can't get it to do the short circuit again.
Anyway, I guess I gotta figure something else out...
Thanks anyway,
P.S. I knew I probably wasn't going to get help here, cause of the nature of what I'm trying to do... could be for unethical reasons. I don't mind, I'll have to find how to do this by digging through the web.