Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session Id
#1
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
Reply
#2
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?
Reply
#3
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;
{ ------------------------------------------------------------------------ }
Reply
#4
(01-15-2020, 12:47 PM)Mikael Nilsson Wrote: 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
I may be misunderstanding what you're looking for, are you looking for the session.AppID?   It's a string, you can show it in any control that will display a string, so displaying it to the user should be straightforward.

Dan
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)