IDEMPIERE-1184 Register browser information available on AD_Session

This commit is contained in:
Carlos Ruiz 2013-09-26 17:34:39 -05:00
parent 5fb2a5a329
commit ba5b760480
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,13 @@
-- Jul 17, 2013 3:14:50 PM COT
-- IDEMPIERE-1184 Register browser information available on AD_Session
UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2013-07-17 15:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54349
;
-- Jul 17, 2013 3:14:55 PM COT
-- IDEMPIERE-1184 Register browser information available on AD_Session
ALTER TABLE AD_Session MODIFY Description NVARCHAR2(2000) DEFAULT NULL
;
SELECT register_migration_script('201309261730_IDEMPIERE-1184.sql') FROM dual
;

View File

@ -0,0 +1,13 @@
-- Jul 17, 2013 3:14:50 PM COT
-- IDEMPIERE-1184 Register browser information available on AD_Session
UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2013-07-17 15:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54349
;
-- Jul 17, 2013 3:14:55 PM COT
-- IDEMPIERE-1184 Register browser information available on AD_Session
INSERT INTO t_alter_column values('ad_session','Description','VARCHAR(2000)',null,'NULL')
;
SELECT register_migration_script('201309261730_IDEMPIERE-1184.sql') FROM dual
;

View File

@ -216,6 +216,10 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
MSession mSession = MSession.get (ctx, x_Forward_IP!=null ? x_Forward_IP : currSess.getRemoteAddr(),
currSess.getRemoteHost(), httpSess.getId() );
if (clientInfo.userAgent != null) {
mSession.setDescription(mSession.getDescription() + "\n" + clientInfo.toString());
mSession.saveEx();
}
currSess.setAttribute("Check_AD_User_ID", Env.getAD_User_ID(ctx));