public static function forge($name, $cookie = null)
    {
        $factory = new SessionFactory();
        $cookie  = $cookie ?: $_COOKIE;
        $session = $factory->newInstance($cookie);
        $self    = new self($session);
        $self->start();

        return $self->withStorage($name);
    }
public static function forge($name, $cookie = null)
    {
        $factory = new SessionFactory();
        $cookie  = $cookie ?: $_COOKIE;
        $session = $factory->newInstance($cookie);
        $self    = new self($session);
        $self->start();

        return $self->withStorage($name);
    }
public static function forge ( $ name , $ cookie = null ) { $ factory = new SessionFactory ( ) ; $ cookie = $ cookie ? : $ _COOKIE ; $ session = $ factory -> newInstance ( $ cookie ) ; $ self = new self ( $ session ) ; $ self -> start ( ) ; return $ self -> withStorage ( $ name ) ; }
construct a SessionStorage using Aura.Session as a default implementation.

@param string     $name
@param null|array $cookie
@return SessionStorage
construct a SessionStorage using Aura . Session as a default implementation .