January 13, 2010

Log out page in JSP?

String username=(String)session.getAttribute("username");

if(username!=null)

{

out.println(username+" loged out, Back");

session.removeAttribute("username");

}

else

{

out.println("You are already not login Back");

}

No comments:

Post a Comment

I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.

My Favorite Site's List

#update below script more than 500 posts