Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminating IntraWeb sessions
#1
Hi Alexandre,

i get an EIWSecurityException if try to use the new Event OnAsyncPageUnloaded

------------------------------------------------------------------------------------------------------------------------
Exception message  : Invalid page context
Security check failed. Please restart the application.
Exception class    : EIWSecurityException
Exception address  : 009B32F5
Exception Time    : 2023-02-04 13:40:22.155
------------------------------------------------------------------------------------------------------------------------
Application Name  : ???
Application Version: ???
Started at        : 2023-02-04 13:39:45.585
Running for        :  36 seconds
Computer Name      : ???
Compiler Version  : 350
------------------------------------------------------------------------------------------------------------------------
IntraWeb Version  : 15.2.69
Multi-session      : False
Content Path      : ???
Session count      : 1
Application Path  : ???
Active Form        : IWA_Frm_Main (TIWA_Frm_Main)
Active Form list  : [1] IWA_Frm_Main (TIWA_Frm_Main)
Form list          : [1] IWUserSession (TIWUserSession)
                    [2] IWC_Session (TIWC_Session)
                    [3] IWA_Frm_Main (TIWA_Frm_Main)
Browser Name      : Firefox
Browser UserAgent  : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Session ID        : MZnkcD~D7TiJN-DaHvuZrSv4AMC
Last Access        : 2023-02-04 13:40:21.488
Callback          : True
Callback name      : DoOnAsyncPageUnloaded
Runtime parameters :
------------------------------------------------------------------------------------------------------------------------
Client IP address  : 127.0.0.1
Request PathInfo  : /$/callback
Request Method    : POST
Request User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Cookies Count      : 1
------------------------------------------------------------------------------------------------------------------------
[Stack trace is empty]
------------------------------------------------------------------------------------------------------------------------

void setAsMainForm()
{
TIWA_Frm_Main::SetAsMainForm();
}

Regards
Juergen
Reply
#2
Hi Alexandre,

i turned off the form ID check temporary and it's working now.

Unfortunately, the event handler IWAppFormAsyncPageUnloaded() is only triggered for the configuration specified in the example.

I created a configuration where all forms are derived from a base class, including the MAIN form.

If I include the event handler IWAppFormAsyncPageUnloaded() in the base class and create a new form with

WebApplication->ShowForm(__classid(TIWFormMenu1), false);

or

TIWFormMenu1* pCurForm = new TIWFormMenu1(this);
pCurForm->Show();

in the menu of the MAIN form, the event handler is no longer called anywhere.
In addition, the behavior of the newly created forms seems partially changed.


Regards
Juergen
Reply
#3
I'll see if I can recreate the issue and get back to you

Cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)