|
<< Click to Display Table of Contents >> Navigation: Telegram > 2018 > 11 > 08 > Telegram_2018-11-08T06 |
2018-11-08T06:00:52
Exactly - then I’ll transfer all these variables from US to ServerController and will generate them at the moment ASession.Data := TIWUserSession.Create(nil, Asession);
2018-11-08T06:03:08
Did I understand you correctly?
You are a genius Mr Jose??????
2018-11-08T06:08:19
Clean socket connection almost
2018-11-08T06:10:30
Vars must be in the type: code Usersession , but type: bold privated individually for each session. They will be unique for each session you create.
2018-11-08T06:12:08
But - You but you wrote it - I thought I need to remove UserSessionUnit
2018-11-08T06:14:46
Yes, because every NEW session have your UserSession.
2018-11-08T06:15:11
type: pre procedure TIWServerController.IWServerControllerBaseNewSession(
ASession: TIWApplication);
var
Gnm : string;
Sender: TObject;
begin
ASession.Data := TIWUserSession.Create(nil); language:
2018-11-08T06:15:16
look your code
2018-11-08T06:15:54
Every NEW SESSION, have an individual TIWUserSession, CREATE
2018-11-08T06:17:05
if (US.AppID='')or(US.IP='')then WebApplication.TerminateAndRedirect(' type: link http://??.site '); - but if session is not user - it will be terminate - so every session have US in my way?
2018-11-08T06:17:43
that's about it
2018-11-08T06:18:35
Every session has an individual US
2018-11-08T06:20:11
Sorry - not well understood
2018-11-08T06:21:15
Change this:
type: pre ASession.Data := TIWUserSession.Create(nil);
language: to this:
type: pre ASession.Data := TIWUserSession.Create(nil, ASession); language:
2018-11-08T06:21:43
type: pre procedure TIWServerController.IWServerControllerBaseNewSession(
ASession: TIWApplication);
var
Gnm : string;
Sender: TObject;
begin
ASession.Data := TIWUserSession.Create(nil);
ASession.Data := TIWUserSession.Create(nil, ASession); language:
2018-11-08T06:21:58
I told you to change your code
2018-11-08T06:22:25
the Second line is for create a US for every session.
2018-11-08T06:22:51
?? Ok will try it now??
2018-11-08T06:24:05
A need both Asession? Or to change? Sorry - I think like a computer)))
2018-11-08T06:24:33
As here?
2018-11-08T06:24:47
No, only second line:
type: code ASession.Data := TIWUserSession.Create(nil, ASession);
2018-11-08T06:25:02
ok
2018-11-08T06:28:00
By the way - when I'm deploing App - I need to delete GoWeb_session.txt? Or not?
2018-11-08T06:29:03
I don't know what is this, :)