title: Can I store an access Cookie in a Laravel session?
body: <p>I am working with a remote API that is normally accessed directly via JavaScript. In the normal flow, The user authenticates by sending Auth headers and in return is granted a cookie.</p>
  
  <p>What I am trying to do is send auth headers from a laravel app, authenticate in the app controller, and provide API access through laravel controller functions.</p>
  
  <p>I was hoping this would be as simple as authenticating and sending my subsequent API calls, hoping that the cookie given to the PHP server would continue to grant authentication.</p>
  
  <p>Well that doesn't work and thats fine, but now I am thinking that I need to store my access cookie in the Session, and send it in the headers for future API calls.</p>
  
  <p>Will this work/how can I go about this? My supervisors don't want to implement OAuth type tokens on the remote server and to me that seems like the best route, so I am a bit stuck.</p>