How to disable browser back after logout

How to disable browser back after logout

View Answers

March 30, 2009 at 12:33 PM

Hi friend,

Check the session is exists or not.

if session is destory then redirect to other page.


Thanks

March 30, 2009 at 3:13 PM

hey buddy
.....
i am sending u a javascript code which shall be very usefull

make sure u paste this code inside head

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

think and use this code because if u dont use this code on right page u might feel the code is not working


May 17, 2011 at 1:04 PM

Its working only in Internet Explorer browser properly, bu not in Mozilla Firefox. -Thank You









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 disable back button of a browser after logging in? - JSP-Servlet
how to disable back button of a browser after logging in?  how to disable back button of a browser after logging in?  where is the source code
how to disable browser back button
how to disable browser back button  Am doing a web application in that how to disable browser back button using java script
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
How to disable back button in browser using javascript
that will disable the working of Back button in Browser:ADS_TO_REPLACE_1 <...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
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 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
after logout the page is going back - Java Beginners
after logout the page is going back  Dear friends can any one help me urgently, how to restrict our jsp pages from going back after logout. i 've did... give details "How to logout the page" to solve the problem. Thanks
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
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'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
disable back button - Java Beginners
disable back button  I wanted the code for disabling back button... displayed but..when i click back button i go back to the register page which should be avoided) I saw methods like using location.replace() but not sure how to use
how can we prevent back option after log out.
how can we prevent back option after log out.  how can we prevent back option after log out
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
How to revert back ServletInputStream object after reading once. - JSP-Servlet
How to revert back ServletInputStream object after reading once.  Hi.... My Q is how can I iterate request object twice? How we can revert back ServletInputStream object after reading once? Please Help me...... Thanks in advance
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
Browser Back/Forward - Struts
Browser Back/Forward  Hi, Greetings to all. I have developed a web application using Struts 2. Now, i want to enable browser back/forward/bookmarking in that. Can anyone post me some links/tutorial/examples or how to go
Disable offline browser access - Security
Disable offline browser access    Hi Please help me to solve... the offline browser issue for the security purpose. But so far I don't find any solution. What I needed is; When the user clicks the website from the browser
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
How to disable an HTML object?
How to disable an HTML object?  How to disable an HTML object
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
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
Logout?
Logout?  how to logout from a jsp page?   Hi to logout from Jsp Page.you should use session.invalidate() method. *khalidkhan
back button issue - Java Beginners
of problem there is two solutions 1- you can disable the back button...back button issue  Hello, I have a site that asks for user and password to connect it. When the user pushs de LogOut button and later another user
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
logout - Struts
logout  how to make code in struts if i click the logout button then no body can back refresh the page , after logout nobody will able to check the page Thanks Anil  Hi anil, //... session.removeAttribute
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
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
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
browser
browser  how to make a browser
logout problem.. - JSP-Servlet
(M.V.C),when a user login's and after doing some work he click logout he...;" but it don't invalidates , if some one click's on back button on browser he...logout problem..  hi... first of all thanks for ur
How to get browser time zone?
How to get browser time zone?  How to get browser Time Zone and browser date using java concept
how to enable and disable a input type in jsp - JSP-Servlet
how to enable and disable a input type in jsp  how to disable the input type and enable based on some input in the input type   Hi Friend, Try the following code: function function1(){ var n
disabling back button
one can help me how to disable this button...disabling back button  hi, i am trying to make an application and i stuck at the point after login.. when i could logged in successfully then if i
Browser issue
Browser issue  how can i close popup windows in mozilla browser and return back to the parent page
how can i make a session invalidate in java when browser is closed
how can i make a session invalidate in java when browser is closed   how can i make a session invalidate in java when browser is closed   ... after 1 minute that shows the user account page fetching from session(same browser
How to disable cut, copy, paste, rename, etc from the Windows Registry ?
How to disable cut, copy, paste, rename, etc from the Windows Registry ?  Hello. I'm trying to create a software in VB.Net to disable the following... disable them from the Windows registry. My problem is I don't know which

Ads