Model_id parameter not set in the URLcart_id parameter not set in the URL
Other Information
I am stuck in a loop. For an intership i am making a e-shop that sells 3D models. When i click on a model it brings me to the login screen which is good, but when i login and go back to the models and press on one it again brings me to the login screen.
I can’t even open the model_details page where is the button add to cart.
All of the behavior you’re describing is determined by your website code. And from what I can tell after a quick look, your entire site seems to be custom coded.
So to fix the issues you’re having, you need to fix your code.
We can’t tell you what exactly you need to do. We don’t know anything about your code, and haven’t seen a single line of it. If you want, you can share the relevant parts here and maybe some people would be willing to help you, but please keep in mind that not many people are happy to study someone else’s codebase to fix issues for free.
If you’re an intern, perhaps there are more experienced software developers in the company that could help you with this and teach you? Isn’t the whole point of internships that you can learn from experienced professionals?
It sounds like there might be an issue with the session management or the routing in your e-shop application. Here are a few steps you can take to troubleshoot and resolve the issue:
Session Management: Ensure that your application is correctly creating and maintaining a session after a user logs in. Check if the session token is stored and sent with subsequent requests.
Routing Logic: Verify the routing logic in your application. After login, the user should be redirected to the previous page or the home page with their session active. Make sure that the application checks for an active session before redirecting to the login page again.
Model Details Access: If the model_details page requires a user to be logged in, confirm that the session check is functioning correctly and that it’s not redirecting to the login page erroneously.
Debugging: Use debugging tools or console logs to track the flow of the application. Check what happens step-by-step when a model is clicked, and what happens after the login process.
Code Review: Review the code responsible for handling the login process and the redirections. There might be a condition that is not accounted for, causing the loop.
Middleware: If you’re using middleware to handle authentication, ensure it’s configured correctly and applied to the appropriate routes.