Proper place to initialize session

I’d like to use sessions for one of my projects and I’m wondering where the session initialization should be performed if one were to do this properly.

Right now, I just do a session_start() after calling the autoloader in my bootstrap.php. Is this OK or is there a better way & place to init session?

As usual, thank for any insights.

I don’t think it really matters. I’ve seen it started in index.php and in middleware.

1 Like

That’s the answer I was hoping for :slight_smile: