Changeset 74 for trunk


Ignore:
Timestamp:
Dec 4, 2016, 1:35:30 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Do not start session if new measured value is added over web API to avoid creation huge number of session files on server.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Core.php

    r69 r74  
    2828  function RunCommon()
    2929  {
    30     global $Config, $DatabaseRevision;
     30    global $Config, $DatabaseRevision, $WithoutSessionStart;
    3131
    32     session_start();
     32    if(!isset($WithoutStartSession) or (isset($WithoutStartSession) and !$WithoutSessionStart))
     33      session_start();
    3334
    3435    $ErrorHandler = new ErrorHandler();
  • trunk/add.php

    r71 r74  
    11<?php
    22
     3$WithoutSessionStart = true;
    34include_once('Application/Core.php');
    45
Note: See TracChangeset for help on using the changeset viewer.