Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active sessions problem
#24
(06-27-2019, 09:21 AM)Alexandre Machado Wrote: Do you have any content handler registered as a session start handler?

No, I don't

(06-27-2019, 08:57 AM)Alexandre Machado Wrote: Hi Ioan,

I don't recommend you remove it because it will raise an exception. But it would be good if you keep the UserAgent string so we can actually see which was the original browser UA string. I'm inclined to think it is a bot...

Just save the original UA string before freeing the original browser and set it again, after creating a new one, like:

procedure TIWServerController.IWServerControllerBaseBrowserCheck(aSession: TIWApplication; var rBrowser: TBrowser);
var
  ua: string;
begin
  ua := rBrowser.UserAgent;
  rBrowser.Free;
  rBrowser := TFirefox.Create(TFireFox.MIN_VERSION);
  rBrowser.UserAgent := ua;
end;

Done, modified the code to keep the original UserAgent string.
Reply


Messages In This Thread
Active sessions problem - by ioan - 06-12-2019, 07:06 PM
RE: Active sessions problem - by kudzu - 06-12-2019, 09:53 PM
RE: Active sessions problem - by ioan - 06-13-2019, 01:25 PM
RE: Active sessions problem - by kudzu - 06-13-2019, 03:18 PM
RE: Active sessions problem - by DanBarclay - 06-13-2019, 08:38 PM
RE: Active sessions problem - by DanBarclay - 06-14-2019, 06:06 AM
RE: Active sessions problem - by ioan - 06-20-2019, 06:05 AM
RE: Active sessions problem - by ioan - 06-20-2019, 06:31 PM
RE: Active sessions problem - by ioan - 06-26-2019, 07:47 AM
RE: Active sessions problem - by ioan - 06-26-2019, 06:38 PM
RE: Active sessions problem - by ioan - 06-27-2019, 07:27 AM
RE: Active sessions problem - by ioan - 06-27-2019, 10:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)