473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to disable back button after the log out?

hi there
i am new in website development and try to develop website in advanced java like jsp with hiberante.
so now i want to create security for after logout from the site pages.
so i need to disable my backbutton of browser after the logout.
how can i do that plz help me
thanks in advanced.
Aug 5 '12 #1
5 3435
lyodmichael
75 64KB
use if else .
Expand|Select|Wrap|Line Numbers
  1.  btnConvertDocuments.setEnabled(false);
Aug 5 '12 #2
ariful alam
185 100+
you can use a cookie settings or session setting after a successful log in and whenever a user click on log out button, you can erase/empty the cookie/session information. And you can check cookie/session information in all pages those are appear just after successful log in and if the cookie/session information is null/empty just redirect those pages.

so, after log out, if any user click on back button from the browser the backed page will check the cookie/session information. as this time the the cookie/session information is already empty, the page will redirect to other page. so, the user can't access those pages after log out or before log in.

Hope it helps!
Aug 5 '12 #3
lyodmichael
75 64KB
i confuse is this java or javascrip?
Aug 6 '12 #4
kadghar
1,295 Expert 1GB
What ariful alarm said was java, but it's good for any server-side script engine. And it's a good way to do it.
Aug 7 '12 #5
Frinavale
9,735 Expert Mod 8TB
If you're interested in indicating that the user has logged out, check out this thread: Logout user on.... The post uses an ASP.NET page for the server side functionality, but that can be replaced with a .php page, .jsp page (java), web service calls...or any server side technology that you prefer.

-Frinny
Aug 7 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ourspt | last post by:
Hi, We are working on a .NET application (ASP.NET/VB.NET). We need to suppress (disable) the 'Back' button in the menu of the browser. What is the way to do that? Thanks in advance oursmp
3
by: sonu | last post by:
I want to disable the browser referesh and back button. is there any way in .net for above. Regards Amit
1
by: JIM.H. | last post by:
Hello, How can I disable Back button in the internet explorer for my ASP.Net C# application. Thanks,
2
by: Vani Donthula | last post by:
Hi In my web application,in one of the page where I need to disable the back button of the toolbar. Suggestions on this are welcome. Thanks, Vani.
9
by: Joe Delphi | last post by:
Hi, When users log out of my web application, I want to disable the back button so that they cannot "back into" the application after they have logged out. Can someone tell me the best way to...
6
by: me2tech | last post by:
Please let me know how to disable back button in Browser
3
by: romeo971987 | last post by:
disable back button..... page should no do postback... i used history.go, history.back, session.abandon...and many more...but still previous page shows.... help me to expire the previous page.......
3
by: abhishekbrave | last post by:
Is it possible to disable back button of a browser in java script. Any pointers will be very helpful so that I can do some workaround on the same
1
by: shashi shekhar singh | last post by:
Respected Sir, I am currently facing a problem in disabling the back Button of IExplorer. Actually I have taken two UpdatePanel on the page(Page A). At first when Page(Page A ) loads then Update...
2
by: SwapnilD | last post by:
How tdo I disable a back button for SAFARI browser... I tried below mentioned code but it only works for IE and I want it to disable only for SAFARI. <SCRIPT language="javascript"> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.