back-button

Disable browsers back button if the session is invalidated [duplicate]

谁说我不能喝 提交于 2019-12-29 07:14:06
问题 This question already has answers here : Prevent user from seeing previously visited secured page after logout (5 answers) Closed 4 years ago . I'm working on JSP. I know there are many posts regarding this topic but nothing is working for me. I have a login page which leads to a welcome page. The session is invalidated when the user clicks on logout and is then redirected to the login page. But if the user clicks the browsers back button he is again taken to the welcome page, although if he

back commandbutton in jsf

梦想与她 提交于 2019-12-29 06:12:06
问题 how would one implement a back-button as a commandbutton that works universally? with back button i don't mean the browser-button, but rather a button that sits somewhere on the page. it is not always possible to use the Post-redirect-get pattern. its quite impractial to pass around the information on every single where the button should point to. is there maybe a reserved keyword for a navigation rule that points to the last navigation rule applied? 回答1: I use a h:commandLink with attribute

Android - Disable Device Back button

天大地大妈咪最大 提交于 2019-12-29 05:33:05
问题 I am working on android application using PhoneGap. I need to handle Device back button functionality by using the below code: import com.phonegap.DroidGap; public Class MyClass extends DroidGap { appView.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) { finish(); return true; } return onKeyDown(keyCode, event); } }); } By using the above code, Application

Alert, confirm, and prompt not working after using History API on Safari, iOS

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 03:32:10
问题 After calling history.pushState in Safari on iOS, it's no longer possible to use alert() , confirm() or prompt() , when using the browser back button to change back. Is this an iOS bug? Are there any known workarounds? Simple example to reproduce this behavior: <html> <body> <ul> <li>Step 1: <button onclick="alert(Math.random())">Confirm Alert is working</button></li> <li>Step 2: <button onclick="history.pushState(null, null, '/debug/'+Math.random());">Change History</button></li> <li>Step 3:

Back Button Image - what is it called in Swift?

本秂侑毒 提交于 2019-12-28 16:14:12
问题 I am trying to use Swift's internal back button image. I have asked this question before and got the technically correct answer that it inherits it from the previous View, BUT if I insert this code you can control the back button on the current View. // Takeover Back Button self.navigationItem.hidesBackButton = false let newBackButton = UIBarButtonItem(title: "<", style: .Plain, target: self, action: "segueBack") navigationItem.leftBarButtonItem = newBackButton That gives me a <, "ABC" would

UINavigationController and UINavigationBarDelegate.ShouldPopItem() with MonoTouch

懵懂的女人 提交于 2019-12-28 06:01:49
问题 How do I pop up an UIAlertView when the back button of a UINavigationBar (controlled by a UINavigationController) was tapped? Under certain conditions, I want to ask the user an "Are you sure?" type of question so he could either abort the action and stay on the current view or pop the navigation stack and go to the parent view. The most appealing approach I found was to override ShouldPopItem() on UINavigationBar's Delegate. Now, there is a quite similar question here: iphone

How does the Back button in a web browser work?

北慕城南 提交于 2019-12-27 16:41:07
问题 I searched the Web about this question but I found nothing: What is the logic of the back button? What is happening when we hit the back button on a Web browser? I really would like to understand more about that. Thank you. 回答1: Your web browser keeps a stack (or list, if you will) of the web pages that you have visited in that window. Let's say your home page is google.com and from there you visit a few other websites: youtube.com, yahoo.com, and cnn.com. Upon visiting the last one, the list

How does the Back button in a web browser work?

a 夏天 提交于 2019-12-27 16:40:12
问题 I searched the Web about this question but I found nothing: What is the logic of the back button? What is happening when we hit the back button on a Web browser? I really would like to understand more about that. Thank you. 回答1: Your web browser keeps a stack (or list, if you will) of the web pages that you have visited in that window. Let's say your home page is google.com and from there you visit a few other websites: youtube.com, yahoo.com, and cnn.com. Upon visiting the last one, the list

Prevent safari loading from cache when back button is clicked

痞子三分冷 提交于 2019-12-27 10:50:07
问题 Got an issue with safari loading old youtube videos when back button is clicked. I have tried adding onunload="" (mentioned here Preventing cache on back-button in Safari 5) to the body tag but it doesn't work in this case. Is there any way to prevent safari loading from cache on a certain page? 回答1: Your problem is caused by back-forward cache. It is supposed to save complete state of page when user navigates away. When user navigates back with back button page can be loaded from cache very

Clicking browser back button after JSF navigation causes “Document expired” in browser

自作多情 提交于 2019-12-25 06:57:20
问题 In my project after login page, main page contain menu on left hand site if I clicked on menu link 1 ==> you will navigate to page 1 then click menu link 2 ==> you will navigate to page 2 ,if you use back button then i get document expired . I want to delete the browser cache after logged out for this i use phase listener. code of phase listener @Override public void beforePhase(PhaseEvent event) { FacesContext facesContext = event.getFacesContext(); HttpServletResponse response =