From b3dc4ba6af31978fabe20196f30b0501ff91c269 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 10 Apr 2008 10:17:50 +0000 Subject: [PATCH] common.php: ensure we only start a session once git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@325 a1433add-5e2c-0410-b055-b7f2511e0802 --- common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index add3e45b..14d0180c 100644 --- a/common.php +++ b/common.php @@ -17,6 +17,9 @@ * environment and ensures other functions are loaded. */ +if(!defined('POSTFIXADMIN')) { + session_start(); +} define('POSTFIXADMIN', 1); # checked in included files function incorrect_setup() { @@ -53,6 +56,5 @@ require_once("$incpath/languages/language.php"); require_once("$incpath/functions.inc.php"); require_once("$incpath/languages/" . check_language () . ".lang"); -session_start(); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */