Posts: 92
Threads: 33
Joined: May 2018
Reputation:
0
Location: Sweden
Hi,
When the user logs in, I want to get the current Session Id so I can match it with the Session Id in the .log file(Dump).
Is it possible?
/Mikael
Posts: 2,299
Threads: 202
Joined: Mar 2018
Reputation:
87
Location: Auckland, New Zealand
Hi Mikael, yes it is possible.
Are you creating the log file yourself or using the built-in log file? When you say "I want to get the current session id", how do you expect this information to be passed on to you?
Posts: 92
Threads: 33
Joined: May 2018
Reputation:
0
Location: Sweden
Yes it is the built-in log file that catches all exceptions.
I was thinking it was passed to Webapplication.
I can set the timeout like this.
{ Set Session timeout -----------------------------------------------------}
WebApplication.SessionTimeout:=30; { 30 minutes is default }
if (UserSession.pID = 7) then begin
WebApplication.SessionTimeout:=(60 * 3); { 3 hours for Martin & Servera }
end;
{ ------------------------------------------------------------------------ }