diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-10-07 14:02:06 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-10-07 14:02:06 +0200 |
commit | 49fb23e82473d3e650ff4d3c2bf9e365455ef74c (patch) | |
tree | 80e0fd5f0f9e34087d7301acf9eae5f8b956faff /server/src/configurationparser.cc | |
parent | 5843ee0f637be32b89ab5b8a17dd8b4427bf59b3 (diff) |
Dump sessions in session xml files before discard, when session_discard_path is in the config file.
Diffstat (limited to 'server/src/configurationparser.cc')
-rw-r--r-- | server/src/configurationparser.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/configurationparser.cc b/server/src/configurationparser.cc index 0796cb9..ca78c84 100644 --- a/server/src/configurationparser.cc +++ b/server/src/configurationparser.cc @@ -195,6 +195,12 @@ void ConfigurationParser::reload() Conf::session_path = s; } catch( ... ) { } + + try { + std::string s = lookup("session_discard_path"); + Conf::session_discard_path = s; + } catch( ... ) { + } } #ifdef TEST_CONFIGURATIONPARSER |