<%
if(!session.isNew()&&((String)session.getAttribute("action")).equals("loginsuccess")) {%>
<a>欢迎您,<%=(String)session.getAttribute("userid") //前台 %>
<%
session.setAttribute("action","loginsuccess");
session.setAttribute("userid",userid);//后台%>
<%
if(!session.isNew()&&((String)session.getAttribute("action")).equals("loginsuccess")) {%>
<a>欢迎您,<%=(String)session.getAttribute("userid") //前台 %>
<%
session.setAttribute("action","loginsuccess");
session.setAttribute("userid",userid);//后台%>