summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-13 05:26:47 +0000
committertill <till@php.net>2008-02-13 05:26:47 +0000
commit2912dbd2c22220d657e5d5d9935f91c09b1103a4 (patch)
treeb1a9cf01885c797923b7044e77cd6ef798cb71e3 /program/include/main.inc
parentaec82bd9401abe260384248477be9d864b247ac9 (diff)
* implemented feature from #1484476
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 9e33bae69..2d28090c7 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -57,6 +57,11 @@ function rcmail_startup($task='mail')
// load configuration
$CONFIG = rcmail_load_config();
+ // set session domain
+ if (isset($CONFIG['session_domain']) && !empty($CONFIG['session_domain'])) {
+ ini_set('session.cookie_domain', $CONFIG['session_domain']);
+ }
+
// set session garbage collecting time according to session_lifetime
if (!empty($CONFIG['session_lifetime']))
ini_set('session.gc_maxlifetime', ($CONFIG['session_lifetime']) * 120);