Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread Server application: Can't access Application.Request.RequestSession.UserName
Tue, Apr 11 2023 1:12 PMPermanent Link

Ralf Mimoun

Hi,

the following code leads to a timeout on browser side and a crashed (internal) EWB web server:

procedure TMainReqHandler.MainReqHandlerHandleRequest(Sender: TObject;
                                                    Request: TWebServerRequest);
begin
Request.SendContent(Request.RequestSession.UserName);
end;

"Request.RequestSession.ID" shows the same behaviour. Request.RequestSession is assigned, I checked that. A constant instead of "Request.RequestSession.UserName" works as it should.

Any ideas?
Image