OK, I think I have a better handle on this now. Someone please correct me
if I'm wrong. If you read the docs carefully you notice it says:

The WEB SET OPTION command modifies the current value of various options
concerning the functioning of the 4D Web server. link
<http://doc.4d.com/4Dv15/4D/15.4/WEB-SET-OPTION.301-3275012.en.html>


And I came across a tech tip <http://kb.4d.com/assetid=77583> explaining
how to programmatically manage using automatic sessions which says:

This method will not change the database settings and only applies to the
session.

By 'session' it seems we mean 'since the database was started' since the
example stops the web server, makes changes, then starts it again.

This may be specifically talking about this particular option but it's the
same behavior I'm seeing. So I'm concluding the options I'm looking at
aren't changed in the database settings (hence don't show up on the
settings form) and would have to be applied each time 4D server starts up.

Anyone else have any ideas here?

And on a related note - if I set the session timeout to something long, say
3 days, and the process timeout to something like an hour (so I don't have
a bunch of idle web processes hanging out) I can use the On web session
suspend command to save the session parameters when the PROCESS closes
down. But how do I know that particular SESSION is resuming?

Tim Penner wrote a really good tech note <http://kb.4d.com/assetid=77597>
demonstrating how to use cookies to track validating web sessions. But it
stops short of discussing this. In his example it seems like the approach
would be to save the web process data with the validated user record -
which is fine if you only allow one session per user, I suppose. But in
that case it seems like I'm going to be managing session expiration instead
of whatever the 4D mechanism is - in which case why do I actually care what
4D's session timeout is?


On Sun, Mar 5, 2017 at 3:19 PM, Kirk Brooks <lists.k...@gmail.com> wrote:

>
> When I moved on to writing a setter method. I notice some options either
> don't change or the database settings panel shows different values.
> Specifically Web inactive process timeout.
>
> I can use WEB SET OPTION to set a value and that value is returned if I
> use my get options method. But if I go to the actual server and look at the
> same setting in the settings form it's different. And if I change the value
> there it doesn't reflect in my get options method.
>
-- 
Kirk Brooks
San Francisco, CA
=======================
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to