Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session not persistent when using database as session driver #10

Closed
nielsvandoorn opened this issue May 3, 2017 · 4 comments
Closed

Comments

@nielsvandoorn
Copy link

Hi there,

Because of my production environment I need to use the database as a session driver. You do this by setting the SESSION_DRIVER in the .env file to database. Unfortunately whenever I try to login the Authentication with Auth0 wil succeed, but the Authentication inside of Laravel is not working. l keep getting redirected to the login page. Works fine when using "file" as SESSION_DRIVER.

@mchainanicimpress
Copy link

@nielsvandoorn did you find a solution for this?

@nielsvandoorn
Copy link
Author

@mchainanicimpress Sorry for the late response. We fixed this by using redis as the session driver

@mchainanicimpress
Copy link

@nielsvandoorn I did something similar by using cookie

@vomitHatSteve
Copy link

So this has been plaguing me for a few days.

Why does the database session driver not load a just-saved session correctly?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants