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

Wrong user_id in session table #300

Closed
captenmasin opened this issue May 29, 2021 · 1 comment · Fixed by #302
Closed

Wrong user_id in session table #300

captenmasin opened this issue May 29, 2021 · 1 comment · Fixed by #302
Assignees
Labels

Comments

@captenmasin
Copy link

  • Octane Version: 1.0.2
  • Laravel Version: 8.44.0
  • PHP Version: 8.0.5
  • Server & Version: Swoole 4.6.4
  • Database Driver & Version: Database (MySql 5.7.34)

Description:

When Swoole is enabled the user_id in the sessions table does not seem to change, i.e I login as user_id 2 which saves fine and then if I logout and log back in as user_id 32 it adds a row to the sessions table with user_id 2

Steps To Reproduce:

  • Install fresh Laravel application with Fortify Auth
  • Install Swoole
  • Run Swoole via artisan octane:start --port=8000 --server=swoole --max-requests=500 --workers=auto --no-interaction --watch
  • Set SESSION_DRIVER=database
  • Ensure cache is disabled CACHE_DRIVER=array
  • Login as a user
  • Check sessions table
  • Logout and login as a different user
  • Check new record in sessions table
@themsaid
Copy link
Member

fixed in #302

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

Successfully merging a pull request may close this issue.

4 participants