classes/SessionManager.php
public static function getSession()
    {
        if (!isset(self::$session)) {
            $session_factory = new SessionFactory();
            self::$session = $session_factory->newInstance($_COOKIE);
        }

        return self::$session;
    }
public static function getSession()
    {
        if (!isset(self::$session)) {
            $session_factory = new SessionFactory();
            self::$session = $session_factory->newInstance($_COOKIE);
        }

        return self::$session;
    }
public static function getSession ( ) { if ( ! isset ( self :: $ session ) ) { $ session_factory = new SessionFactory ( ) ; self :: $ session = $ session_factory -> newInstance ( $ _COOKIE ) ; } return self :: $ session ; }
Get the current session.

@return Session
Get the current session .