• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

values are still maintaining in session even though i removed from the session

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am setting attribute in session using
request.getSession().setAttribute("SELECTED_MODEL")
and getting like this
request.getSession().getAttribute("SELECTED_MODEL")
after that i am removing from session using
request.getSession().removeAttribute("SELECTED_MODEL");

even though doign like this values are still maintaining in the session

my problem in application is

i am selecting year model category [all are select boxes] and click go means it is listing products related to that category

this is fine,problem is i am doing signout and again iam loged in

at that time year model category are highlighted as previously i selected
how they are maintaining i am not understand
can any body help me
[ October 18, 2008: Message edited by: rakesh kopperapu ]
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you disabling client-side caching? It is hard to tell from what info you provided, but it sounds like it could be that the client is viewing the page, caching the results, so the next time you get to that page it doesn't have to make a round-trip to the server and the page displays faster. This would mean that any changes on the server-side are not seen. So make sure you add no-cache headers to all the pages you need to make sure the user sees latest data from. Google for no-cache headers to see the combination of 2 or 3 headers needed to prevent caching in most all circumstances.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of just "sessions" isn't very descriptive.

Please go back and change your post to add a more meaningful subject by clicking the .
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic