Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

My app randomly quits #70

Closed
subdesign opened this issue Mar 21, 2016 · 7 comments
Closed

My app randomly quits #70

subdesign opened this issue Mar 21, 2016 · 7 comments

Comments

@subdesign
Copy link

Hey,
I've set up successfully the adldap authentication combined with Laravel Auth system. I can log in , log out users, get users data well, etc. But, my app randomly quits to login screen, an I can't find any logic how and why does it.
For pseudo example, I press edit article link, I add some modification, save it. But next time when I press the edit link, app quits to login screen. Nothing changed meantime..
No error in the logs, I use Laravel 5.1.x latest.
One thing, it happens only on my production server, on local no such happens. Code base is 100% the same.
Any idea?
Thanks

@stevebauman
Copy link
Member

This sounds like a Laravel session issue. Adldap2-Laravel uses the exact same authentication as Laravel's default Eloquent auth driver.

What driver are you using for sessions?

@subdesign
Copy link
Author

I use "file" driver for sessions.

@stevebauman
Copy link
Member

Use the database driver. I've actually created an issue about this.

laravel/framework#8244

@subdesign
Copy link
Author

Thanks Steve, I'll try and come back with the result. Btw, this package is nice job!

@subdesign
Copy link
Author

Now, I click here and there in my admin, and was only one quit: I just pressed F5 in my admin on current page, (list of articles based on Datatables), app quitted to login screen, and a second row appeared in my sessions table! Strange.. I know it's not usable info, just said.

@subdesign
Copy link
Author

Ok figured out! The admin and the frontend is a different laravel app [...], routes mixed with nginx.
So when a visitor reached the frontend, my admin session was invalidated. So I renamed the admin's Laravel session cookie variable and now no collision happens.
Thanks again

@stevebauman
Copy link
Member

Awesome! Glad to hear you've sorted it out. Thanks for updating on the issue.

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

2 participants