View Issue Details

IDProjectCategoryView StatusLast Update
0009361mantisbtotherpublic2008-10-18 18:32
Reporterblueray Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
PlatformINTEL X86OSLINUXOS Version2.6.9-67.0.15
Product Version1.1.2 
Target Version1.1.3Fixed in Version1.1.3 
Summary0009361: php session fail created cause mantis app error.
Description

Hi, All

I just faced with an issues that is my hosting due to some php setting errors.
It miss config session.save.path so that creation of php session decline.

Suggest make a global variable $g_session_save_path to let users do a manual config if server haven't configured it.

Steps To Reproduce
  • In config_default_inc.php or config_inc.php

$g_session_save_path = '/tmp';

  • In core/session_api.php

Index: session_api.php

--- session_api.php (revision 20)
+++ session_api.php (working copy)
@@ -49,6 +49,11 @@
*/
class MantisPHPSession extends MantisSession {
function __construct() {

  • $t_session_save_path = session_save_path();
  • if (empty($t_session_save_path))
  • {
  • session_save_path(config_get('session_save_path'));
  • }
    session_start();
    $this->id = session_id();
    }
TagsNo tags attached.

Activities

grangeway

grangeway

2008-07-15 15:35

reporter   ~0018559

John, can you look at this?

paul

jreese

jreese

2008-07-28 15:21

reporter   ~0018816

Fixed in SVN trunk, r5441, and 1.1.x, r5442.

Related Changesets

MantisBT: master a5364992

2008-07-28 15:16

jreese


Details Diff
Fix bug 0009361: Add configuration of PHP session path.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5441 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0009361
mod - core/session_api.php Diff File
mod - config_defaults_inc.php Diff File

MantisBT: master-1.1.x b6151f1d

2008-07-28 15:19

jreese


Details Diff
Fix bug 0009361: Add configuration of PHP session path.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@5442 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0009361
mod - core/session_api.php Diff File
mod - config_defaults_inc.php Diff File