laravel / sanctum

Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
https://laravel.com/docs/sanctum
MIT License
2.76k stars 296 forks source link

Expired session cookies pilling up, causing 431 HTTP Errors #300

Closed Neodark7 closed 3 years ago

Neodark7 commented 3 years ago

Description:

I'm having this weird issue (only happening in Firefox as of my testing) where a new "dead" cookie is added everytime i login.

First login, no issue, i have only two HttpOnly cookies.

image

After 5 login/logout attemps, i have now 8 HttpOnly cookies, and it keeps pilling up until i eventually get an 431 HTTP error code from nginx

image

I'm using the laravel app as an api only, with a separate nuxt app using the nuxt auth plugin configured for laravel sanctum. Everything works fine with Chrome, the cookies are not pilling up like on Firefox.

Steps To Reproduce:

I don't have steps to reproduce this behavior, that's the first project i'm seeing this. Tell me if there is any other information i can give to resolve this issue.

driesvints commented 3 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.