-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
No executing middleware #210
Comments
Hello @gitbucket-crypto Check PHP session documentation |
I discovered the problem, the node '/admin/.*, has setted data in global $_REQUEST like other nodes but the internal handler for requisition never uses that, I made my handler for this problems `
}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tryed to execute like the documentation
$router->before('GET|POST', '/admin/.*', function() {
if (!isset($_SESSION['user'])) {
header('location: /auth/login');
exit();
}
});
but isnt working the request goes direct into private side of application without check if user has access and is loged
The text was updated successfully, but these errors were encountered: