This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

back button problem  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


1)i have one login page.user enter name and password

and click submit..

2)when submit button click,session will be created.
name and pass word set attribute to session

3)after logout i click browser back button,it display the
previous page

i am also using the following code for session closing in my logout.jsp
but it is not working..






i am also using the following javascript code to disable back button in my login.jsp
but it is not working..








iam using browser IE6.0 and mozila3.6 ..

it also not working in eclipse browser

please reply me..
thanks in advance
 
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once I done this.

--> dont use java script for disabling back button.

--> clear browser cache.[you have that]

--> use PRG technique[if you dont know , search in javaranch]

--> if browser dont cache and user click back button then it request on server side, now you check session and redirect him to the same last page or login page.

<edit>response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); I remember[but not sure] , here dont use no-store, it give problem in IE or Mozilla[reason dont know]... just check...</edit>

hth
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!