<?php
/**
 * This makes our life easier when dealing with paths. Everything is relative
 * to the application root now.
 */
chdir(dirname(__DIR__));

// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
    return false;
}

// Setup autoloading
require 'init_autoloader.php';

// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();

<?php
/**
 * This makes our life easier when dealing with paths. Everything is relative
 * to the application root now.
 */
chdir(dirname(__DIR__));

// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
    return false;
}

// Setup autoloading
require 'init_autoloader.php';

$sessionManager = new Zend\Session\SessionManager();
$sessionManager->setName('vfadmin');
$sessionManager->start();

// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();

Make this code use a different session than the default PHPSESSID so it doesn't clash with 3rd party shopping cart's sessions.
Make this code use a different session than the default PHPSESSID so it doesn't clash with 3rd party shopping cart's sessions.