This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Setting session time-outs

To set the session time-outs on the server, you must set the limits in the globalsettings.py file. This controls many Snap WebHost features. globalsettings.py is in C:\Python25\Lib\site-packages\snap2

You must edit the line

SURVEY_SESSION_TIMEOUT = 3600 # How long a user's session is kept whilst doing a survey (in seconds)

to specify the length of time a survey is kept open durnig completion. This value is only checked once every housekeeping period, so the possible total length of time is the timeout+ housekeeping period.

HOUSEKEEPING_PERIOD = 600 # How long between checks to stop and restart and the survey session timeouts.

You will need to restart services after making any changes to globalsettings.py.

See Also

Displaying the load files