Hi,
Could you please tell me why the message “Page expired” appears in Web Client sometimes? What triggers the generating of this error?
DB
This happens when your session times out, by default after 30 minutes without activity.
You can change the duration in the file: servoy\application_server\server\conf\web.xml
Somewhere in that file you’ll see this:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
It is also possible to show something else when a timeout happens, using the following properties on the admin page:
servoy.webclient.pageexpired.page
servoy.webclient.pageexpired.url
servoy.webclient.pageexpired.redirectTimeout
this could also be a result of many (more then 5) (modal)windows open at the same time.
So if you have such a setup please try to not show that many, we will up that 5 in the next release.
this could also be a result of many (more then 5) (modal)windows open at the same time.
So if you have such a setup please try to not show that many, we will up that 5 in the next release.
This “Page expired” html page indeed appears after pressing on a button from a modal (form in) dialog. But it is one, not even close to 5 or more. I am not sure I understand what you mean by “try to not show that many”, i always show one and the user closes it by pressing on x or on the ok button (which calls the application.closeFormInDialog method).
Maybe I am missing something?
Diana
if you have it just with 1 and then page expired if you press a button on that then it is something else.
It could be that you open up more then 5 modal or none modal windows at the same time, that isnt suported by servoy webclient in 4.1.3 (or lower)
we have upped that maxto about 15.
if you have it just with 1 and then page expired if you press a button on that then it is something else.
Thank you for your promptitude!
I only have 1 modal dialog displayed at that time. After the press of the specific button on that dialog, 2 things happen:
- application.closeFormDialog()
- call of a method
The Page expired html does not always appear. Sometimes it works fine all the way, I do not see a logic on the triggering of “Page expired”.
Do you know what it could be?
Diana
no, not directly
do you have it when you open that same action more the 5 times? So that you did open up more then 5 dialogs? (but not at he same time?)
Just try to pin point when it really goes wrong.
The number of the dialogs that can pop in the application depend on some things. For example if some fields are not filled, there is a dialog shown with text: “Please fill all required fields!”. It can appear as many times as the webuser forgets to fill in a field. But it happened to me that only 1 dialog was ever popped in the application (the one that generates the “Page expired” sometimes) and it generated “Page expired”.
I am using Servoy 3.5.9.
Diana
try to make a test case then where it happens most often.