Changeset 433


Ignore:
Timestamp:
Nov 3, 2013 5:17:49 AM (11 years ago)
Author:
anonymous
Message:

Disable sessions automatically for CLI scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r422 r433  
    315315        }
    316316
    317         if (true === $this->getParam('enable_session')) {
     317        // Skip sessions if disabled or automatically skip if run in a CLI script.
     318        if (true === $this->getParam('enable_session') && !defined('_CLI')) {
    318319
    319320            // Session parameters.
Note: See TracChangeset for help on using the changeset viewer.