public static boolean hasInstance(String name, PageContext pc) { Resource res = _loadResource(pc.getConfig(), SCOPE_SESSION, name, pc.getCFID()); Struct data = _loadData(pc, res, null); return data != null; }
/** * load new instance of the class * * @param name * @param pc * @param checkExpires * @return */ public static Session getInstance(String name, PageContext pc, Log log) { Resource res = _loadResource(pc.getConfig(), SCOPE_SESSION, name, pc.getCFID()); Struct data = _loadData(pc, res, log); return new SessionFile(pc, res, data); }