// last visit
str = (String)pc.cookieScope().get(cookieName+"_LV",null);
if(!StringUtil.isEmpty(str)) {
l=Caster.toLongValue(str,0);
if(l>0)sct.setEL(LASTVISIT, new DateTimeImpl(pc,l,true));
}
if(type==SCOPE_CLIENT){
// hit count
str= (String)pc.cookieScope().get(cookieName+"_HC",null);
if(!StringUtil.isEmpty(str)) sct.setEL(HITCOUNT, Caster.toDouble(str,null));
// time created
str = (String)pc.cookieScope().get(cookieName+"_TC",null);
if(!StringUtil.isEmpty(str)) {
l=Caster.toLongValue(str,0);
if(l>0)sct.setEL(TIMECREATED, new DateTimeImpl(pc,l,true));
}
}
ScopeContext.info(log,"load data from cookie for "+strType+" scope for "+pc.getApplicationContext().getName()+"/"+pc.getCFID());
return sct;