Atozed Forums

Full Version: Session Id
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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?
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;
{ ------------------------------------------------------------------------ }
(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