So I'm working on an API call (for internal purposes between two of our servers) that needs to receive a session id and then put some data into that session. So in the controller (I'm using API middleware, so no StartSession) I'm trying to manually start a session w/ an arbitrary ID. I've tried
Session::setId($id);
Session::start();
and:
App('session)->driver()->setId($id);
App('session')->driver()->start();
But neither are working. What's the best way to do this?
Also, once the session is started this way can I just use session()->set() and forget? Or do I need to close it or something?
BTW I'm on Laravel 5.2 and using redis for the session, if that matters.