Atozed Forums
content handler only application - 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: content handler only application (/thread-4667.html)



content handler only application - iwuser - 11-13-2024

Can I not have an application without forms or sessions, with content handlers only? - it gives me "Session has no active form". Maybe I'm just missing some setting somewhere?

I just have this:

  with THandlers.Add('', '*', TXXXX.Create) do begin
    CanStartSession := False;
    RequiresSessionStart := False;
  end;


I can probably do this in the OnExecuteRequest instead, and just as well, I just never expected handler-only approach to fail...

The error has no session ID. But it does mention a single cookie. And it's a POST - IW trying to establish a session after the initial GET.

Error details:

[font="Trebuchet MS", Arial, Helvetica, sans-serif]------------------------------------------------------------------------------------------------------------------------
Exception message : Session has no active form
Depending on the error condition, it might be possible to restart the application.
Exception class : EIWNoActiveForm
Exception address : 0000000000F19808
Exception Time : 2024-11-13 19:08:03.875
------------------------------------------------------------------------------------------------------------------------
Client IP address : AAA.BBB.CCC.DDD
Request PathInfo : /
Request Method : POST
Request User Agent : Mozilla/...
Cookies Count : 1[/font]