📄 userlogonout.java.svn-base
字号:
/**
* Copyright (c) 2005-2008 KIND Corp. 2005-2008,All Rights Reserved.
* This software is published under the KIND Team.
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @File name: NoUseCAKeyLogon.java
* @Description:
* @Create on: 2008-3-22
* @Author : st
*
* @ChangeList
* ---------------------------------------------------
* Date Editor ChangeReasons
*
*
*/
package com.chis.model.frame;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import com.stframe.form.ActionForm;
import com.stframe.form.DataForm;
import com.stframe.servlet.ActionInstance;
public class userLogonOut extends ActionInstance {
public int execute(ActionForm af) throws Exception {
af.getHttpSession().setAttribute("USERID", null);
af.getHttpSession().setAttribute("USERNAME", null);
af.getHttpSession().setAttribute("USERLOGON", null);
// 删除存储在list中的用户
String sessionid = af.getHttpRequest().getSession().getId();
// OnLine on = new OnLine();
// List list = on.log_list;
// ListIterator iter = list.listIterator(list.size());
// while (iter.hasPrevious()) {
// DataForm log_user = (DataForm) iter.previous();
// String onsessionid = log_user.get("OL_SESSIONID").toString();
//
// if (onsessionid.equals(sessionid)) {
// iter.remove();
// }
// }
return 1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -