• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

caching problem!!!!

 
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MY situation:
i have 2 jsp pages , the first page is a login.jsp where a user name and password is authenticated , if correct then the next page show.jsp is revealed .
MY problemS:
1. if the user is authenticated then he goes into show.jsp( as i said above) but if he clicks the back button on the browser then the same page (show.jsp) appears on the browser but this is not sensible as the user should be taken to login.jsp !!! i suspect some caching happening here , how to rectify this.is there something to be corrected with sessions ??
i feel that every query should be made from server and not from the cache of browser but how to do it!!!
Any idea is welcomed with utmost gratitude!!!
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

hi
according to me what is happening in ur case, ur login page checks for some condition and redirects it to the show page, now when u r on the show page and u click on back button it will go to the login page and since u r already logged in (ur condition is true) it again takes u to the show page.
bye,
Padmanabh

 
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai!
U might placed the snippet that i suggested u in ur login page. First of all tell me about ur requirement.
Rgds
Manohar
 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi thanks for the support , instead of probing thro the javascript i solved this problem by using Deployment descriptor(web.xml)which makes the things relatively easy !!!
 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if someone has a interest in this then just email me and i will be pleased to help you all!!! if u wait for sometime then i will be releasing a detailed NOTES regarding this deployment descriptor as all the web sites which deal with this havent got a good description which hopefully i will be making in a couple of days (perhaps in 2 weeks!!!)
 
He does not suffer fools gladly. But this tiny ad does:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic