Commit ac41478c299d0a33c07ecde85b1ec8f015463c3b

Authored by Amrita Vishnoi
1 parent 92e2426c

fix

400-SOURCECODE/AIAHTML5.API/Helper/LoginHelper.cs
@@ -41,6 +41,7 @@ namespace ADAM.AIAHTML5.API.Helper @@ -41,6 +41,7 @@ namespace ADAM.AIAHTML5.API.Helper
41 accountTransactInfo.licenseModesty = Convert.ToBoolean(objLicEdition[LoginConst.MODESTY_SETTING]).ToString(); 41 accountTransactInfo.licenseModesty = Convert.ToBoolean(objLicEdition[LoginConst.MODESTY_SETTING]).ToString();
42 42
43 CheckLicenseStatus(userInfo); 43 CheckLicenseStatus(userInfo);
  44 +
44 accountTransactInfo.licenseIsExpired = userInfo.IsSubscriptionExpired; 45 accountTransactInfo.licenseIsExpired = userInfo.IsSubscriptionExpired;
45 accountTransactInfo.licenseExpirationDate = userInfo.SubscriptionExpirationDate; 46 accountTransactInfo.licenseExpirationDate = userInfo.SubscriptionExpirationDate;
46 bool r = (bool)objLicEdition[LoginConst.TERM_CONDITION]; 47 bool r = (bool)objLicEdition[LoginConst.TERM_CONDITION];
400-SOURCECODE/AIAHTML5.API/Utility/SessionManager.cs
@@ -110,12 +110,12 @@ namespace ADAM.AIA50.BusinessLayer.Utility @@ -110,12 +110,12 @@ namespace ADAM.AIA50.BusinessLayer.Utility
110 //Count only those logged since 20min or less 110 //Count only those logged since 20min or less
111 //NOTE: GM Changed to 5 minutes because 20 is too long to wait to detect a browser crash 111 //NOTE: GM Changed to 5 minutes because 20 is too long to wait to detect a browser crash
112 //NOTE: this could be moved in the Sql Query for more speed 112 //NOTE: this could be moved in the Sql Query for more speed
113 - DateTime currentDateMinutesAgo = DateTime.Now.AddMinutes(-20); 113 + DateTime currentDateMinutesAgo = DateTime.Now.AddMinutes(-20); // 11.45 =11:25
114 int count = 0; 114 int count = 0;
115 for (int i = 0; i < dtblSessionManager.Rows.Count; i++) 115 for (int i = 0; i < dtblSessionManager.Rows.Count; i++)
116 { 116 {
117 DateTime loginTime = DateTime.Parse(dtblSessionManager.Rows[i][2].ToString()); //LoginTime 117 DateTime loginTime = DateTime.Parse(dtblSessionManager.Rows[i][2].ToString()); //LoginTime
118 - if (currentDateMinutesAgo <= loginTime) 118 + if (currentDateMinutesAgo <= loginTime) // 11:20/11:50
119 count++; 119 count++;
120 } 120 }
121 121