Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet How to disable browser back after logout

Have Programming Question? Ask it here!
 
 
 


Rajkumar
How to disable browser back after logout
3 Answer(s)      5 years and a month ago
Posted in : JSP-Servlet



Advertisement
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 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 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
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
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 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
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
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
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 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
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
How to disable an HTML object?
How to disable an HTML object?  How to disable an HTML object
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
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
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
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 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
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 dispaly pdf file on browser
how to dispaly pdf file on browser  In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by tag can anyone give me
how to display pdf file on browser
how to display pdf file on browser   In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by iframe tag can anyone
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
login-logout
login-logout  how to do login and logout using session in php
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
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 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   ... the application and closed without logout and reopened the same after 1 minute
browser
browser  how to make a browser
[JSP] How to pass back ID to previous page.
[JSP] How to pass back ID to previous page.  Hi experts, May I ask something. How to link a page to previous page which the content in previous page is selected from database where IDPRODUCT=". I don't know how to pass back
Advertisements
 

 

 

DMCA.com