?? logoutaction.java
字號:
package com.yhcms.manage.admin.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
/**
* <p>Title:退出后臺Action</p>
* <li>退出后臺</li>
* <br><b>CopyRight: yyhweb[由由華網]</b>
* @author stephen
* @version YH-2.0
*/
public class LogoutAction extends Action{
public ActionForward execute(ActionMapping actionmapping,ActionForm form ,
HttpServletRequest request,HttpServletResponse response){
Logger yhlog = Logger.getLogger(LogoutAction.class.getName());
HttpSession session = request.getSession(true);
session.removeAttribute("yhcmsuser");
session.removeAttribute("userpower");
yhlog.info("Admin user successfully logout system.");
return actionmapping.findForward("Exit");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -