jadachDevClub member 6/20/2019 | |
I too would like to learn what others do in this regard. Too many times, my users keep an app open on their task bar and realize after performing some task, the app disconnected from the database due to time out. I am dealing with active directory. |
J
|
jetsguy author 6/21/2019 |
I too would like to learn what others do in this regard. Too many times, my users keep an app open on their task bar and realize after performing some task, the app disconnected from the database due to time out. I am dealing with active directory.
|
jadachDevClub member 6/21/2019 | |
I am looking at something like this for my purpose. Basically, to be on the safe side, if a page is up for 10 minutes, a javascript confirmation box will appear. Clicking OK will reload the page. So if the user is still connected no harm. If the user clicks cancel, it will go back to the menu page where it should force a new login if disconnected. setTimeout(function() {
|
Pete K 6/24/2019 | |
I am looking at something like this for my purpose. Basically, to be on the safe side, if a page is up for 10 minutes, a javascript confirmation box will appear. Clicking OK will reload the page. So if the user is still connected no harm. If the user clicks cancel, it will go back to the menu page where it should force a new login if disconnected. setTimeout(function() {
|
J
|
jetsguy author 6/24/2019 |
This looks like a good idea. Have you implemented anything like this that works? That looks like a workable solution, Jerry. But the need to add the same code to many pages points out an inherent shortcoming of the ASPR platform. A couple of possible workarounds come to mind. You could add some server code to the AfterAppInit() event which would first test to see if this is an add or edit page and if so maybe use Response.Write to output the JS. Not sure of that would work but it might be worth a try. Another thought: you could put the the JS code in the page header, in which case you would have to wrap it with some server code, similar to the above. |
jadachDevClub member 6/24/2019 | |
This looks like a good idea. Have you implemented anything like this that works?
|