need immediate solution
Sir,
i am using the session variable for accessing particular jsp page.
i am not able to destroy the session variable
i have used
session.removeAttribute("variable");
but once i press the link, the variable is gettig destroyed but.
when i again enter with as another user, the session is not getting included.
thank u
vinitha
>but once i press the link, the variable is gettig destroyed but.
>when i again enter with as another user, the session is not getting included.
Which Link ?
if the Link is Logout,
first use session.invalidate();
and forward him to Login page.
i think ur session.removeAttribute("name"); is not in proper place ;)
send the code , if possible
AE
You can use this code it will work fine with every logout code
Enumuration enum = session.getAttributeNames();
if(enum.hasNext()){
session.removeAttribute(enum);
}
session.invalidate();
Plz check the spelling. For furthur problem let me know.
Thanks and Regards
Rajib Sharma