Changeset 75 for trunk


Ignore:
Timestamp:
Dec 4, 2016, 1:40:00 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Do not start session for new value addition.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Core.php

    r74 r75  
    1515  var $ShowPage;
    1616  var $BaseURL;
     17  var $UseSession;
    1718
    1819  function __construct()
     
    2021    parent::__construct();
    2122    $this->Pages = array();
     23    $this->UseSession = true;
    2224    $this->ShowPage = true;
    2325    $this->BaseURL = $_SERVER['SCRIPT_NAME'];
     
    3032    global $Config, $DatabaseRevision, $WithoutSessionStart;
    3133
    32     if(!isset($WithoutStartSession) or (isset($WithoutStartSession) and !$WithoutSessionStart))
    33       session_start();
     34    if($this->UseSession) session_start();
    3435
    3536    $ErrorHandler = new ErrorHandler();
  • trunk/add.php

    r74 r75  
    11<?php
    22
    3 $WithoutSessionStart = true;
    43include_once('Application/Core.php');
    54
    65$Core = new Core();
     6$Core->UseSession = false;
    77$Core->ShowPage = false;
    88$Core->Run();
    9 
    109
    1110if(array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET))
Note: See TracChangeset for help on using the changeset viewer.