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



Home Answers Viewqa Development-process After Logout Back Button Should not work again
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


prudvi raj
After Logout Back Button Should not work again
1 Answer(s)      3 years and a month ago
Posted in : Development process


Hi deepak,,

I am doing Login Page,.. IN That If Logout Then When I Click Logout Button It Should not work.. For That what is the logic And what Concept I have To Use.. Please Kindly Help me...

your regards, Prudvi raj.


Advertisement
View Answers

October 18, 2011 at 11:47 AM


Hi, you would might be creating session and adding some attribute during login process of user. Please check that session attribute in the if block that

if(session.getAttribute("userId")!= null){
//then show the logout button
}else{
// show the login button
}


Related Tutorials/Questions & Answers:
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
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
Advertisements
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
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
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
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 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
should not go back to index.jsp when press on the link logout
should not go back to index.jsp when press on the link logout  Hello... Logout.java.but now the problem is this ,when i press the back arrow on the browser... that should not be happened. so please help me out from this problem
should not go back to index.jsp when press on the link logout
should not go back to index.jsp when press on the link logout  Hello... Logout.java.but now the problem is this ,when i press the back arrow on the browser... that should not be happened. so please help me out from this problem
should not go back to index.jsp when press on the link logout
should not go back to index.jsp when press on the link logout  Hello... Logout.java.but now the problem is this ,when i press the back arrow on the browser... that should not be happened. so please help me out from this problem
There and Back Again
There and Back Again       The weblog of Joshua Eichorn, AJAX, PHP and Open Source Read full Description
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 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... login page using back button and agin click browser forward button,the 2nd page.....But i dont want it to happen.Instead,it should again ask for login. I am using
Back button
Back button  how to redirect to a home page when a back button is pressed in jsp instead of displaying the previous page
Session expire and back button in jsp and servlet .
previous pages by clicking back button of browser without again logging. Plz... Session expire and back button in jsp and servlet .  Hii Sir... to invalidate the session after a certain interval of time and after clicking logout
disabling back 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 press back button i again reach to the back page ie. authentication page so if any
navigation item back button
navigation item back button  I wants to add a navigationBar on the top of my UIWebView also a navigation item "back button". can anyone please explain how the back and refresh button works
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
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
PushViewController back button
PushViewController back button  How can i hide the back button... it always show back button.   In your ViewDidLoad method just hide the navigation back button as given in the code. navigationItem.hidesBackButton = YES
uinavigationcontroller back button action
uinavigationcontroller back button action  Hi, Tell me how to back... will display the back view on click of a button in my iPhone and iPad based application. Give me any code for uinavigationcontroller back button action method. Thanks
browser back button
browser back button   hi...i created one page in JSF.that page had three form division.in first form one add button is there.if i click that button move to second form,then i click browser back button ,it moves on another page.so
back button issue - Java Beginners
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 pushs the back button of the explorator he can entry in the page of first user
back button in jquery
back button in jquery  Creating a back button in JQuery   <script src="/javascript/jquery.min.js"></script> <script type="text/javascript">     $(document).bind("mobileinit", function(){     
Disabling the back button in all the browsers
Disabling the back button in all the browsers  I have a requirement like this, I have to disable back button of all the browsers(It should support all the browsers). Can u plz help me
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
disable back button - Java Beginners
displayed but..when i click back button i go back to the register page which should...disable back button  I wanted the code for disabling back button in my application(The scenario is like when im in my register user page and try
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
 

 

 

DMCA.com