Пример #1
0
        public void EndSession(string sessionIdentifier)
        {
            SecureSession session = SecureSession.Get(sessionIdentifier);

            session.Delete();
            Log.AddEntry("EndSession: Session {0} was deleted", sessionIdentifier);
        }
Пример #2
0
 public ActionResult Delete(long id)
 {
     try
     {
         string msg = "";
         Bam.Net.ServiceProxy.Secure.SecureSession dao = Bam.Net.ServiceProxy.Secure.SecureSession.OneWhere(c => c.KeyColumn == id);
         if (dao != null)
         {
             dao.Delete();
         }
         else
         {
             msg = string.Format("The specified id ({0}) was not found in the table (SecureSession)", id);
         }
         return(Json(new { Success = true, Message = msg, Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }