• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Values are still mainaining in session even i removed from it

 
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 attributr in the controller like this
request.setAttribute("xxx",xx)

i am getting this in the jsp page and displaying values

in the top of the controler i am checking
if(request.getAttribute("xxx") != null){
request.removeAttribute("xxx");
}
so values should be removed from the session,but not removing from the session
my task is i am choosing options from select bOx,and click submit means values are coming,

after doing signout and again signin in this situation also values are highlighted in the select box which i selected previously ,did i made any mistake
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
just use session.invalidate() after sign out.
you session will be destroyed and you will get new session when you are
signin.

Regards,
Suresh Kumar.K
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi rakesh kopperapu welcome to Javaranch ,
Just make sure that you are not looking at a cached page.
 
reply
    Bookmark Topic Watch Topic
  • New Topic