Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Values are still mainaining in session even i removed from it

 
rakesh kopperapu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
 
K.Suresh Kumar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rakesh kopperapu welcome to Javaranch ,
Just make sure that you are not looking at a cached page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic