Ignore:
Timestamp:
Dec 4, 2016, 1:35:30 AM (7 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.
File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.