How to disable browser back after logout

Ads

 
 
 

Share on Google+Share on Google+

Rajkumar
How to disable browser back after logout
3 Answer(s)      8 years ago
Posted in : JSP-Servlet
Ads
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


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 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
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
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 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 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
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
Tutorials   
Java Spring Hibernate Struts Training fat image from db fat image from db fat image from db fat image from db unable to get value returned from javascript variable in page How to change image size before adding to mysql using jsp Design a registration.jsp page with input for user registration details Cart Quantity jsp servlet coding issue servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? image pdf marking pdf marking Multiple image upload using JSP Read code from excel sheet and upload into database using JSP Student java about search engine Convert BLOB to PDF and save it to a location how to copy files from remote to local machine using SFTP SSL in java? Like Team viewer Socket and Servert -Jsp how to copy files from remote location to local using java? How To Store Multilple Images In MySQL database dynamically with image uploader and then retrieve them in image gallery using java how to create SOAP based web service in java? how to fetch data from mysql database table and draw a bar chart on that data using in jsp how to create users in LDAP using java? how to authenticate user using TIVOLI api in java? how to create users using IBM Tivoi API in jsp/servelet? Java/J2ee Please explain this code as many packages and classes are unknown to me .! how to download the uploaded folder files using jsp Login Query image is display from path of mysql database please reply the code to store dynamic fields in database? Reloading issue in jsp How to get Button Id ? calling one jap page from another jsp page login login Problem to get connection from DAO class to JDBC Page Loading Time Fix table's column's name row(1st row of the table) so that it does not move up when the table is scrolled up to view more rows below Sending hidden values

Ads

 
Advertisement null

Ads