Did you pass the token with your request in the header? I had a similar problem where submit the token as payload simply don't work.
L5 - Request to a subdomain is causing the session to be regenerated
EDIT - I created a git repo that show this problem in action. https://github.com/valeryan/L5sessiontest
TLDR - Session are not working across subdomains for me in L5 with session domain set to .example.com
So I have been building some test applications using the Laravel development branch. My application has a main domain like 'example.com' and a Restful API at 'api.example.com'. Anytime I try to make a request to the API I get a token mismatch exception. I disable the verify token middleware of course my request goes through. I could not find any weird problems with any of the code that handles all the verification stuff on the Laravel side, but when I opened the session storage folder in my application I had like 50 session files. I noticed that anytime I refreshed a page with an api request in it a new session gets generated. if the page has 2 request two new session get generated ect... The request are made via ajax. I can move my API routes to example.com/api and session work just fine. I can browse to api.example.com and session work find that way. I have a session domain set to .example.com in my config so that the session is shared between these domians. The API and main site are running on the same Laravel code that I just download form git yesterday. I am also passing CORS headers to allow the request. if I turn of the token verification the calls work but the session is still regenerated so things like auth don't persist.
I did not have any issues with dividing up my API like this in L4. Has anyone else ran into an issue like this with Laravel 5?
Please or to participate in this conversation.