aspose file tools*
The moose likes Servlets and the fly likes values are still maintaining in session even though i removed from the session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "values are still maintaining in session even though i removed from the session" Watch "values are still maintaining in session even though i removed from the session" New topic
Author

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

rakesh kopperapu
Greenhorn

Joined: Oct 17, 2008
Posts: 8
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 ]
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

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.


Steve
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61628
    
  67

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 .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: values are still maintaining in session even though i removed from the session