Atozed Forums
Session Id - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Session Id (/thread-1491.html)



Session Id - Mikael Nilsson - 01-15-2020

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


RE: Session Id - Alexandre Machado - 01-16-2020

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?


RE: Session Id - Mikael Nilsson - 01-16-2020

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;
{ ------------------------------------------------------------------------ }


RE: Session Id - DanBarclay - 01-17-2020

(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