thitami
thitami

Reputation: 838

Laravel intermittent logout

I did some research on this one and seems to be an issue for some users.

Noticed that Laravel logs me out automatically and intermittently. It's quite hard to replicate but it happened twice in a demo/presentation which has impact as you understand.

I can imagine that sessions can be suspect nr1 for this one but whatever I tried didn't seem to work.

How did you overcome this issue?

Upvotes: 1

Views: 50

Answers (1)

ceejayoz
ceejayoz

Reputation: 179994

https://github.com/laravel/framework/issues/7549

On rare occasions, the session file can become corrupted if one copy reads in a half written out file. This condition, however, is difficult to reproduces.

Laravel team member @GrahamCampbell:

This is known limitation of the file based session driver.

Using a different session driver should do the trick. (My preference tends to be Redis, but the database driver may be a bit easier to set up for a demo.)

Upvotes: 1

Related Questions