How to disable browser back after logout

Ads
 

How to disable browser back after logout

View Answers

March 30, 2009 at 11:38 AM

Hi friend,

Use this code on the page for solving the problem :

<script language="JavaScript">
javascript:window.history.forward(1);
</script>

Thanks

May 17, 2011 at 12:52 PM

Sorry friend its not working......


June 15, 2011 at 5:56 PM

ya dats right... its not working when i click the back button of the browser more than one tym


July 27, 2011 at 4:56 PM

seee you dont have that script simply ur sending unneccessary scrpit.wat am i asking ur not understanding,this is time waste procedure.


March 27, 2012 at 2:08 PM

Once try it can work


March 27, 2012 at 2:09 PM

Ads









Related Tutorials/Questions & Answers:
How to disable browser back and forward button after logout [in struts2 or jsp]
How to disable browser back and forward button after logout [in struts2 or jsp]  How to disable browser back and forward button after logout... click the back button of the browser more than one time
How to disable browser back after logout - JSP-Servlet
. Anyone having idea how to disable browser back button after logout, please...How to disable browser back after logout  Dear All I created JSP... problem is, when i am clicking browser back button i can see my old visited pages
Advertisements
How to disable browser back after logout - JSP-Servlet
How to disable browser back after logout  thanks deepak, i tried but if i am clicking back still i can see my old pages. i copied your code in my logout page. please if you have any other solution, please give me
how to prevent from navigating Back after logout or session expire in jsp
how to prevent from navigating Back after logout or session expire in jsp  Hii Sir, I am making a web app in which after logout one can go to back pages from the browsers back button which i dont want in my app. Plz
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p  Hi, I have designed a "back" button for jsp page. Now I want to disable Browser's default button So that people will use "back
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p  Hi, I have designed a "back" button for jsp page. Now I want to disable Browser's default button So that people will use "back
How to disable back button in browser using javascript
that will disable the working of Back button in Browser: <SCRIPT type="...There are times while developing a website, we need to disable back button in browser. Most common example of this is found in Online Banking Websites. Most
Should not logout after clicking the back/forward button
Should not logout after clicking the back/forward button  Hi all I have wrote a code for login now. User is able to login but after logging in when he clicks on the back button user automatically gets logged out. very next
After Logout Back Button Should not work again
After Logout Back Button Should not work again  Hi deepak,, I am doing Login Page,.. IN That If Logout Then When I Click Logout Button It Should...")!= null){ //then show the logout button }else{ // show the login button
Browser Back Button Disable/Hide/Invisible using Java Script
Browser Back Button Disable/Hide/Invisible using Java Script  Dear Sir, Please Help..., Q: How to Write Code For Browser Back Button Disable/Hide/Invisible using Java Script without Page Reload/Refreshing. anyone
how to disable submit button after login in jsp
how to disable submit button after login in jsp  Hi, I have... on the back button in browser it stars displaying login page. How to prevent this? how to disable submit button after login in jsp? Thanks   Hi, You can
Browser's back button
Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
Enable Browser's back button
Enable Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
Browser's back button
Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
browser back button
browser back button   hi...i created one page in JSF.that page had... move to second form,then i click browser back button ,it moves on another page.so how can i control.please any one know the ans plz let me know. thank
disabling the browser's back button
disabling the browser's back button  I have following requirement, After submitting the form, user should not navigate to the previous page. I have tried with onbeforeunload(), but it is not working properly. Please help me
Protractor close browser after test
Protractor close browser after test  Hi, I am writing test cases for checking a website in protractor, but after login I logout. But sometime due to session related issues. I want to close and start browser. How to restart
How to prevent from navigating to a page after reaching Login page using back button?
How to prevent from navigating to a page after reaching Login page using back button?  Hi sir, I have created 2 pages, 1) Lo gin Page 2)Page... login page using back button and agin click browser forward button,the 2nd page
Browser Back Button click event javascript
Browser Back Button click event javascript  I am using the below code but window.onBeforeUnload is not working with back button.. how can i apply the below code for the click event of back button? window.onBeforeUnload
Logout?
Logout?  how to logout from a jsp page?   Hi to logout from Jsp Page.you should use session.invalidate() method. *khalidkhan
should not go back to index.jsp when press on the link logout
Logout.java.but now the problem is this ,when i press the back arrow on the browser...should not go back to index.jsp when press on the link logout  Hello i m having a problem in my servlet page.Actully what i m trying to do is that i
should not go back to index.jsp when press on the link logout
Logout.java.but now the problem is this ,when i press the back arrow on the browser...should not go back to index.jsp when press on the link logout  Hello i m having a problem in my servlet page.Actully what i m trying to do is that i
should not go back to index.jsp when press on the link logout
Logout.java.but now the problem is this ,when i press the back arrow on the browser...should not go back to index.jsp when press on the link logout  Hello i m having a problem in my servlet page.Actully what i m trying to do is that i
How to disable task manager using java
How to disable task manager using java  How to disable task manager using java
How to Disable Catch-all Emails on CPanel
How to Disable Catch-all Emails on CPanel  Hi, How to disable catch all emails setting on CPanel? Thanks
How to get browser time zone?
How to get browser time zone?  How to get browser Time Zone and browser date using java concept
login and logout
login and logout   > > > > hi, > >... home.jsp code i > created a login form and after submitting... button with value logout > > and in the action i had given the home.jsp
how to make enable/disable textbox in while(rs.next)
how to make enable/disable textbox in while(rs.next)  Hi, I'm trying to enable/disable the textbox in the while loop. It works but when i want.../disable function,the data are updated correctly. Is my javascript wrong? How do i
how to make enable/disable textbox in while(rs.next)
how to make enable/disable textbox in while(rs.next)  Hi, I'm trying to enable/disable the textbox in the while loop. It works but when i want.../disable function,the data are updated correctly. Is my javascript wrong? How do i
how to get browser cookies in java
how to get browser cookies in java  Hi, How to get cookies in serverlet and then print? how to get browser cookies in java? Thanks   Hi, Use following code: Cookie[] cookies = request.getCookies(); for (int i = 0
Session expire and back button in jsp and servlet .
to invalidate the session after a certain interval of time and after clicking logout button.Means that after session expiry time and logout action no one can access previous pages by clicking back button of browser without again logging. Plz

Ads