The connection pool of the physical layer gives the possibility in the Connection Script tab to execute a command script:
insert into login_table(:user,sysdate)
You can call an autonomous function/store procedure.
with a server variable
Setting a database session variable.
SET SESSION 'APPLICATIONUSER' = 'VALUEOF(NQ_SESSION.USER)'