Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Just wondering...

Why I need to start a session before I set up some options? It wouldn't be more logical to do it before I start the session? (I'm wondering, I'm sure there will be very good reasons).

    $ID->setShared('session', function() {
        $session = new Files();
        $session->start();
        $session->set('auth', array(
                'id' => -1,
                'nombre' => 'anonimo',
                'rol' => 'Anonimo'
            ));
        return $session;
    });


50.7k
Accepted
answer

You're not setting options there - you're setting actual session values.