Forums Register Login

Values are still mainaining in session even i removed from it

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Hi rakesh kopperapu welcome to Javaranch ,
Just make sure that you are not looking at a cached page.
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 696 times.
Similar Threads
SQL Select to concat rows
Session attributes
Need suggestions and help for my scenario in struts
How to populate html:select options in struts
JSP Form values Not able to submit
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:32:29.