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

heykatieben's avatar

Vue component causing auto logout? Session variable issue maybe?

My vue component is causing an auto logout, only when the user is not an admin specified in the SparkServiceProvider. So what is different about those users?

The CRUD operations my vue component uses have the web middleware, and have been given the user prop. Everything works as expected when logged in as a Spark admin, and when logged in as a non-admin, the session expires as soon as I hit the page with the Vue component.

I tried this, this didn't work: https://github.com/rairlie/laravel-locking-session. Any other ideas?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.