Atozed Forums
After timeout refresh page - 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: After timeout refresh page (/thread-3142.html)



After timeout refresh page - matija - 04-14-2023

I have sessiontimeout setting 5 min. After not beautiful message 500 ...

Can you replace with html template which contain link to refresh page?


RE: After timeout refresh page - Alexandre Machado - 04-16-2023

This feature exists for years:

https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/CustomizingExceptions/UsingTemplates


RE: After timeout refresh page - matija - 04-18-2023

(04-16-2023, 01:02 AM)Alexandre Machado Wrote: This feature exists for years:

https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/CustomizingExceptions/UsingTemplates

I tried this demo! In folder Templates copy only my IWSesionTimeOut.html Thats it? Did i forget something ... not work?


RE: After timeout refresh page - Alexandre Machado - 04-18-2023

Are you getting error 500? Are you testing this as a stand alone application locally or made it an ISAPI app under IIS?

I tested this demo right before posting that response to you and it works as intended without any modification.


RE: After timeout refresh page - matija - 04-19-2023

(04-18-2023, 08:01 PM)Alexandre Machado Wrote: Are you getting error 500? Are you testing this as a stand alone application locally or made it an ISAPI app under IIS?

I tested this demo right before posting that response to you and it works as intended without any modification.

My app is ISAPI app under IIS.


RE: After timeout refresh page - Alexandre Machado - 04-19-2023

so you are not running the same exact demo application, but a modified one  Big Grin

Please check the last item of this page, 8. Configuring your application to show timeout errors in a Windows Server:

https://docs.atozed.com/Docs.dll/deployment/isapi/Deploying%20ISAPI%20using%20IIS.html

It explains why you are always receiving a 500 error when running in IIS and how to fix it.

If you already have a web.config file, you just need to add this line to the appropriate place:

<httpErrors existingResponse="PassThrough" />

Please let me know if it solved your issue.