Support the ongoing development of Laravel.io →
posted 11 years ago
Session

I'm currently creating an app that has Laravel as it's backend. Laravel just functions as an API and I don't have any need for sessions, however I am still using functions like Auth::attempt().

How do I make sure that Laravel does not start a session?

Last updated 3 years ago.
0

Try setting the session driver to "array"
This will cause the session functions to just store their data in an array rather than in the actual session.

Last updated 3 years ago.
0

Try... Config::set('session.driver','');

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.