Page 1 of 1

Leave this page message

Posted: Thu Apr 02, 2015 3:18 pm
by bruceanthony
Is there a way to change part of the "Are you sure you want to leave this page?" message? In particular, I would like to change "This will end your session." message to something like "You will lose all entered data if you leave this page." And if possible, I would like this message to be dynamic so that it can be changed to any value depending on the RPG program running at the time.
leave.docx
(25.56 KiB) Downloaded 180 times

Re: Leave this page message

Posted: Fri Apr 03, 2015 9:17 am
by Scott Klement
Part of that screen is coming from the browser, but you can change the "this will end your session" part. You'll find info on that, here:
http://www.profoundlogic.com/docs/displ ... n+on+Close

Re: Leave this page message

Posted: Fri Apr 03, 2015 1:07 pm
by bruceanthony
Scott,

Thank you!

Perfect. This is better than I could have hoped for.

I also really like: pui.shutdownOnClose = true; :-) :-) :-) :-) :-) :-) :-) :-) :-) :-)

Is pui.shutdownOnClose = true; available in GENIE? The reason I ask is that many of our GENIE users close the browser tab or the entire browser and the RPG program does not terminate until the timeout value has been reached. This causes problems at times because many of our update programs have locked records and we are now forced to cancel programs. I tried to change our timeout value to a lower value but, oh well, our users are pampered and we mow have a 6 hour timeout. I believe that I have asked about this before and was told that there was no way to automatically terminate programs in GENIE when the browser is closed. Have things changed regarding this issue?

Re: Leave this page message

Posted: Fri Apr 03, 2015 2:36 pm
by Scott Klement
Yes, not only is it available, but it's turned on by default. Your Genie sessions should be automatically shut down when a user closes a window. If you were told otherwise by a Profound Logic employee, then I would guess that there's something else involved here (another factor that I'm not aware of.)

Re: Leave this page message

Posted: Fri Apr 03, 2015 2:59 pm
by bruceanthony
Scott,

Yes, it does terminate the program. My apologies for stating otherwise.

It doesn't terminate if we shutdown or restart our PC. Probably nothing can be done about this situation.

We are using Windows 7, ie 11 and we are currently on version 4.8.4 of Profound UI.

Bruce

Re: Leave this page message

Posted: Fri Apr 03, 2015 3:25 pm
by Scott Klement
You say your users are "pampered" and have a 6 hour timeout. I wonder why you want them to time out at all? I think with a timeout that long, you probably aren't too worried about them walking away from their workstation and allowing someone else to therefore do things under their name -- after all, 6 hours would allow plenty of them for them to do damage.

Have you considered setting the timeout to a lower value and then turning on the keep-alive feature? The keep alive feature tells Genie to send a signal to the server periodically. This will reset the timeout... so you could do something like have a 30 minute timeout and a 15 minute keep-allive interval. Every 15 minutes, Genie will send a keep-alive to the server, and therefore the timeout will never occur as long as Genie is active.

But, if the user were to hit the power button and immediately shut down their PC (thus not allowing Genie to shut down normally) the session would close within 30 minutes.

Re: Leave this page message

Posted: Mon Apr 06, 2015 11:10 am
by bruceanthony
Scott,

Never considered the keep alive option. Your suggestion works perfectly for our environment.

I used the following documentation located at:
http://www.profoundlogic.com/docs/displ ... e+Interval

I changed the httpd.conf configuration file to a timeout of 5 minutes instead of 6 hours.

I added the following to settings.js

// Send keep-alive request every 2 minutes
pui["client side timeout"] = false;
pui["keep alive interval"] = 120;

Restarted the *http server instance so that the above values would be used. I then tested and it worked great.

Thank you,

Bruce