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 not work.. For That what is the logic And what Concept I have To Use.. Please Kindly Help me...

your regards, Prudvi raj.

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
}

Ads









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
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 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
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
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
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
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
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(){     
ModuleNotFoundError: No module named 'get-back-to-work-ronald'
get-back-to-work-ronald After the installation of get-back-to-work-ronald...ModuleNotFoundError: No module named 'get-back-to-work-ronald'  Hi...: No module named 'get-back-to-work-ronald' How to remove the ModuleNotFoundError
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
uinavigationcontroller back button not showing/ missing
uinavigationcontroller back button not showing/ missing  Hi, In my... but ... somehow in the next view uinavigationcontroller back button not showing...... as the uinavigationbar back button use the title of the previous view
click on back button go to the login page
click on back button go to the login page  now when i click on back button the page show that page on where i came from and it shows the session expired but i want when i click a back buttob then it should show a login page
JSP Back Button
JSP Back Button          Jsp Back Button enables the user back... illustrate an example from 'JSP Back Button'. To understand the example we have used
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
forwarding request to a jsp when user clicks on back button in ie
forwarding request to a jsp when user clicks on back button in ie  Hi... of the application, We should not allow the customer to go back to the previous page. Can we forward request to a jsp page whenever user clicks on back button
How to disable back button in browser using javascript
There are times while developing a website, we need to disable back button... of the time the back button is disabled because a user can hit back... that will disable the working of Back button in Browser: <SCRIPT type="
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

Ads