var key = "loginUser";
var exist = _webParams.getSessionItem().containsKey(key);
if(exist){....}
var data = _webParams.getSessionItem().get("loginUser");
if(data != null){
var name = data.get("username");
}
var data = _db.findData("cms","user","123456");
if(data != null){
_webParams.getSessionItem().put("loginUser",data);
}
_webParams.getSessionItem().remove("loginUser");