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 value returns null when adding middleware #468

Open
ericvesuna opened this issue Aug 14, 2024 · 0 comments
Open

Session value returns null when adding middleware #468

ericvesuna opened this issue Aug 14, 2024 · 0 comments

Comments

@ericvesuna
Copy link

ericvesuna commented Aug 14, 2024

  • LogViewer Version: 10.1.1
  • Laravel Version: 10.1
  • PHP Version: 8.1

Description:

Session value always returns null while calling middleware for viewing logs. But while using the same middleware with some other routes the session value work. Tried with getting session value in middleware before calling curl request function as well as added get session value directly in curl request

Steps To Reproduce:

  1. Add get session and assign it to variable, value of that variable will be null.
  2. call any function from any file the session value will return null.

Update on above issue:

Added web in middleware before calling custom routes and it worked. Did backtrace and found the session was not started

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

No branches or pull requests

1 participant