Commit ac41478c299d0a33c07ecde85b1ec8f015463c3b
1 parent
92e2426c
fix
Showing
2 changed files
with
3 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.API/Helper/LoginHelper.cs
... | ... | @@ -41,6 +41,7 @@ namespace ADAM.AIAHTML5.API.Helper |
41 | 41 | accountTransactInfo.licenseModesty = Convert.ToBoolean(objLicEdition[LoginConst.MODESTY_SETTING]).ToString(); |
42 | 42 | |
43 | 43 | CheckLicenseStatus(userInfo); |
44 | + | |
44 | 45 | accountTransactInfo.licenseIsExpired = userInfo.IsSubscriptionExpired; |
45 | 46 | accountTransactInfo.licenseExpirationDate = userInfo.SubscriptionExpirationDate; |
46 | 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 | 110 | //Count only those logged since 20min or less |
111 | 111 | //NOTE: GM Changed to 5 minutes because 20 is too long to wait to detect a browser crash |
112 | 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 | 114 | int count = 0; |
115 | 115 | for (int i = 0; i < dtblSessionManager.Rows.Count; i++) |
116 | 116 | { |
117 | 117 | DateTime loginTime = DateTime.Parse(dtblSessionManager.Rows[i][2].ToString()); //LoginTime |
118 | - if (currentDateMinutesAgo <= loginTime) | |
118 | + if (currentDateMinutesAgo <= loginTime) // 11:20/11:50 | |
119 | 119 | count++; |
120 | 120 | } |
121 | 121 | ... | ... |