From 431bd3d8108bd3477bb3968be25e53880b67cee2 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 22 May 2016 16:57:09 +0000 Subject: [PATCH] rename session cookie With the default PHPSESSID cookie name, there are some rare (and hard to debug) cases that break logging in if a different application on the domain also uses a PHPSESSID cookie. See https://sourceforge.net/p/postfixadmin/bugs/314/ for details. Using 'postfixadmin_session' as cookie name should fix this. git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1846 a1433add-5e2c-0410-b055-b7f2511e0802 --- common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common.php b/common.php index 26ef9398..28bea047 100644 --- a/common.php +++ b/common.php @@ -22,6 +22,7 @@ if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php if (!defined('POSTFIXADMIN_CLI')) { // this is the default; see also https://sourceforge.net/p/postfixadmin/bugs/347/ session_cache_limiter('nocache'); + session_name('postfixadmin_session'); session_start(); if (defined('POSTFIXADMIN_LOGOUT')) {