How can create session used with in idhttpserver ?
I tryed alot of ways to do but I can't able to reach session object in ARequestInfo.Session or AResponseInfo.Session these are both of them always nil. please help
procedure TFolsecPermissionManager.IdHTTPServerCommandGet(AContext: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
var
Command: TCommand;
Session: TIdHTTPSession;
begin
Session := IdHTTPServer.CreateSession(AContext, AResponseInfo, ARequestInfo);
IdHTTPServer.SessionList.Add(Session);
Command:= TCommand.Create;
Command.Start(AContext, ARequestInfo, AResponseInfo);
end;
TCommand
object, as you are not freeing it when you are done using it – Remy Lebeau