protected void Session_End() { var elapsed = this.Session.SessionID; Session session = new Session(); // remove all products from productvisit tbl session.RemoveItems(elapsed); }
protected void Session_Start() { Session session = new Session(); var id = session.SessionID; // remove expired sessions session.RemoveExpired(id); // check for duplicates session.ValidateSession(id); // add session to visit tbl session.CastSession(id); }