<?php require 'vendor/autoload.php'; use Helge\Session\Session; /** * Start a session, you can specify the session_name, session_id and session_cache_limiter * when starting a session since these need to be set before the session is actually started. * returns true if the session is started successfully, false if not. */ Session::start($name = null, $id = null, $cacheLimiter = null); /** * returns true if the session is started, false if not. */ Session::isStarted(); /** * Returns the status of the session which is an INT that maps to these constants: * - PHP_SESSION_DISABLED if sessions are disabled. * - PHP_SESSION_NONE if sessions are enabled, but none exists. * - PHP_SESSION_ACTIVE if sessions are enabled, and one exists. */ Session::status(); /** * Gets or sets the type of cache HTTP Headers are sent to the client * More information: http://php.net/manual/en/function.session-cache-limiter.php * returns the the current cache limiter as a string */ Session::cacheLimiter($cacheLimiter = null); /** * gets or sets the session save path, if you want to change the path where sessions are stored, this must be called BEFORE a session is started */ Session::savePath($path = null);