public void CloseSession(string sessionKey) { //encrypt login and password string loginName = ""; string pass = ""; getloginAndPass(UserId, ref loginName, ref pass); string _url = getWSUrl(this.Url); RepositoryWebservice repo = new RepositoryWebservice(_url); repo.CloseSession(sessionKey, loginName, pass); /* Resource r = new Resource(); r.TemporaryStoragePath = "/app_data/courier/temp_log.temp"; byte[] remoteLog = Convert.FromBase64String( repo.GetResourceContents(sessionKey, null, "", r, loginName, pass)); repo.Dispose(); string path = Context.Current.MapPath(Core.Settings.logsPath) + Core.Helpers.IO.DirSepChar + sessionKey + ".remotelog"; System.IO.File.WriteAllBytes(path, remoteLog); */ RevisionLog.Instance.AddRevisionEntry(this.GetType(), "ExtractRevisions", "Session closed", LogItemEntryType.Information); }