Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,535
» Latest member: winapkcom
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 1175 online users.
» 2 Member(s) | 1169 Guest(s)
Applebot, Bing, Google, Yandex, h19t5com1, winapkcom

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 126
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 120
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 132
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 417
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 213
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 585
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 203
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,160
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 334
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 943

 
  Session has no active form.
Posted by: svenheuer - 09-19-2023, 01:41 PM - Forum: IntraWeb General Discussion - Replies (3)

Dear,

On a huge system with sometimes few hundreds users I got the error "Session has no active form". I have no clue what this is. The stracktrace does not show any user code. Any hints? 

If I call the same page again everything works.


Best regards
Sven

Print this item

  Click Jacking
Posted by: Zhikter - 09-19-2023, 07:31 AM - Forum: IntraWeb General Discussion - Replies (4)

I have tried googling the answer, but I cannot seem to find anything.

Does IntraWeb have built in defenses against click jacking? or is this something that I have to implement?

Print this item

  NOT FOUND HANDLER
Posted by: JuergenS - 09-18-2023, 11:51 AM - Forum: IntraWeb General Discussion - Replies (9)

Hi Alexandre,

I have installed my own NOT FOUND HANDLER (404) to prevent scraping.
When a user searches entire directories for files, after a certain number of times the user's IP address is temporarily blocked.

I have now discovered that the NOT FOUND HANDLER is no longer called by the server when file extensions are blocked.
Instead, a session is created and the server blocks after a while.

Could it be that the handling has changed in one of the last versions?

Regards

Juergen

Print this item

  BS4 - how to change the color e.g. bg-info
Posted by: wieczy - 09-16-2023, 10:40 AM - Forum: IntraWeb General Discussion - No Replies

Hi,

is there a small example how to change the color of e.g. bg-info. I'm using bootstrap4 components with C++ but Delphi is also ok.

thanks wieczy

Print this item

  Async frame refresh
Posted by: mhammady - 09-11-2023, 04:49 PM - Forum: IntraWeb General Discussion - Replies (8)

I have a frame that is created on a form. Is it possible to async refresh this frame ONLY (not the whole form) from within the frame code?

Thank you

Print this item

  TIWFrame in IntraWeb14 or 15
Posted by: joergb - 09-07-2023, 12:04 PM - Forum: IntraWeb General Discussion - Replies (2)

Hello

I'm a newbee in IW programming and so I started with IntraWeb14.
I want to make a form with a Menu on the left side and dependet dialogs or lists on the right side of the form.

Normaliy in CBuilder or Delphii I take a Panel on the left to place the menue in it and a frame on the right side for the depending content.

I read something about a component TIWFrame.
But I cannot find such a component in IntraWeb 14 to put it on a form and load the frames .
I search in the online doc, I make a textsearch on all hpp files , but I cannot find it.

Is is an old component and disabled in Version 14 ?
And what can I do, to create these simple app ?

Thanks

Print this item

  Indy + Open SSL 1.1.1 = TLS 1.3
Posted by: Alexandre Machado - 09-06-2023, 05:57 AM - Forum: IntraWeb General Discussion - Replies (2)

Stress testing one of our Indy applications that is using our new Indy branch with Open SSL 1.1.1 and being capable of TLS 1.3

1 million requests, almost 20 Gb of data sent, zero errors, rock solid  Big Grin

PS: All requests using Https/TLS 1.3

   

Soon!

Print this item

  jqDbGrid edit fails when TIWServerController.RewriteURL is set (reverse proxy)
Posted by: oystein.jakobsen@sas.no - 09-02-2023, 08:33 PM - Forum: IntraWeb General Discussion - No Replies

IWjqDbGrid edit fails when used in a reverse proxy configuration, that is when TIWServerController.RewriteURL property is set.



Attached Files Thumbnail(s)
   
Print this item

  (Re)start session on QueryStatus from TIWMonitor
Posted by: jeroen.rottink - 09-01-2023, 05:27 PM - Forum: IntraWeb General Discussion - Replies (4)

Hi,

Scenario:

In a project I am working on, we use hardware devices running a webbrowser as a display but no touchscreen, mouse or keyboard attached.
They are configured to load a webpage https://webserver.local/externaldisplay
The page https://webserver.local/externaldisplay is handled by a TContentForm in a IntraWeb application.
That page contains a TIWMonitor to poll the server and act based on the response.
When there is a network error or the server is stopped, the client should display a message informing the user of the device.
When the server is restarted the communication has to be restored. No user intervention should be necessary.

Part of this is working.

* After starting up the device, a session is created and the page is loaded via the content handler
* The page is refreshed based on the TIWMonitor response
* When I close the server, a message is displayed in the browser
  TIWMonitor.jsCallbackName gets called with value as a parameter. value == -1 when the server is gone.

But when I restart the server, the value keeps being -1. Reason is the old session does not exists anymore.
What should I do to create a new session on a $/QueryStatus call?
Or in what other way can I get the client to keep working after a server restart?

Print this item

  Set Response 403 from TContentForm.OnBeforeExecute
Posted by: jeroen.rottink - 08-31-2023, 12:25 PM - Forum: IntraWeb General Discussion - Replies (4)

I have to check the IP from the client before allowing access to a page.
I test this in TContentForm.OnBeforeExecute and would like to return 403 Forbidden

Result is the exception 'Reply type already set.'


Code:
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
var ContentHandler: TContentBase;
begin
  ContentHandler := TContentForm.Create('TDlgExternDisplay');
  ContentHandler.FileMustExist := False;
  ContentHandler.CanStartSession := True;
  ContentHandler.OnBeforeExecute := CheckAccessProfile;
  THandlers.Add('/externdisplay', ContentHandler);
end;

procedure TIWServerController.CheckAccessProfile(Sender: TObject; var AContinue: Boolean);
var RemoteAddr: string;
begin
  RemoteAddr := WebApplication.Request.RemoteAddr;
  if True
  then begin
    AContinue := False;
    // mark session for cleanup
    TerminateSession(WebApplication, 403, 'Forbidden');
  end;
end;

procedure TIWServerController.TerminateSession(ASession: TIWApplication; AHttpCode: integer; AHttpCodeText: string);
begin
  ASession.Response.Code := AHttpCode;
  ASession.Response.CodeText := AHttpCodeText;
  ASession.Terminate(AHttpCode.ToString + #32 + AHttpCodeText);
end;

Using IW 15.3.12

Print this item