📄 adminsession.java
字号:
package com.laoer.bbscs.servlet;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* <p>Title: 天乙社区V5.0</p>
* <p>Description: BBS-CS天乙社区V5.0</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: laoer.com</p>
* @author 龚天乙
* @version 5.0
*/
public class AdminSession {
boolean sessionOK = true;
String name = "";
String passwd = "";
public AdminSession(HttpServletRequest request) {
HttpSession httpsession = request.getSession();
this.name = (String) httpsession.getAttribute("name");
this.passwd = (String) httpsession.getAttribute("passwd");
}
public boolean checkSession() {
if (this.name == null || this.name.length() == 0 || this.passwd == null ||
this.passwd.length() == 0) {
this.sessionOK = false;
}
return this.sessionOK;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -