Eccube\Application::initSession PHP Method

initSession() public method

public initSession ( )
    public function initSession()
    {
        $this->register(new \Silex\Provider\SessionServiceProvider(), array('session.storage.save_path' => $this['config']['root_dir'] . '/app/cache/eccube/session', 'session.storage.options' => array('name' => $this['config']['cookie_name'], 'cookie_path' => $this['config']['root_urlpath'] ?: '/', 'cookie_secure' => $this['config']['force_ssl'], 'cookie_lifetime' => $this['config']['cookie_lifetime'], 'cookie_httponly' => true)));
        $options = $this['config']['session_handler'];
        if ($options['enabled']) {
            // @see http://silex.sensiolabs.org/doc/providers/session.html#custom-session-configurations
            $this['session.storage.handler'] = null;
            ini_set('session.save_handler', $options['save_handler']);
            ini_set('session.save_path', $options['save_path']);
        }
    }