1 18 19 package cowsultants.itracker.web.util; 20 21 import java.util.*; 22 23 import cowsultants.itracker.ejb.client.util.*; 24 25 public class SessionTracker { 26 private Date now; 27 private String login; 28 private String sessionId; 29 30 public SessionTracker() { 31 now = new Date(); 32 } 33 34 public SessionTracker(String login, String sessionId) { 35 this.login = login; 36 this.sessionId = sessionId; 37 } 38 39 protected void finalize() throws Throwable { 40 try { 41 if(Logger.isLoggingDebug()) { 42 Logger.logDebug("Invalidating SessionManager info for " + this.login); 43 } 44 SessionManager.invalidateSession(this.login); 45 } catch(Exception e) { 46 } 47 } 48 } | Popular Tags |