Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

afrasiyab_haider's avatar

Sharing sessions between web and api

I want to share the session between web and API routes. I've used this in Kernal.php inside API middleware \Illuminate\Session\Middleware\StartSession::class, but still not getting values from the web session

0 likes
3 replies
Sinnbeck's avatar

Why is your api stateful (has sessions)?

Please or to participate in this conversation.