User is logged out during Shop Interaction
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User is logged out during Shop Interaction
Hi,
I installed the new Aimeos Laravel Version 2018.07 with Laravel 5.4.
During the interaction (adding products to the basket) all of a sudden the user is logged out from our laravel application and looses the items in his basket.
Can you help me with this issue? What information do you need to investigate this issue further?
Best,
Michael
I installed the new Aimeos Laravel Version 2018.07 with Laravel 5.4.
During the interaction (adding products to the basket) all of a sudden the user is logged out from our laravel application and looses the items in his basket.
Can you help me with this issue? What information do you need to investigate this issue further?
Best,
Michael
Re: User is logged out during Shop Interaction
Are you able to upgrade to Laravel 5.5 LTS? Laravel 5.4 isn't supported any more
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: User is logged out during Shop Interaction
The upgrade of Laravel is only our last option, because it is connected to a lot of dependency updates.
What we saw concerning the issue is when we add some products to the basket, after some time the user is logged out. And the user was logged out, because there was a "Validation Token was expired. Please try again" in the jsonapi call. Maybe this error breaks the session for the user. Any ideas?
What we saw concerning the issue is when we add some products to the basket, after some time the user is logged out. And the user was logged out, because there was a "Validation Token was expired. Please try again" in the jsonapi call. Maybe this error breaks the session for the user. Any ideas?
Re: User is logged out during Shop Interaction
Did you remove the this or a similar marker in your templates?
This will contain the CSRF tokens that Laravel needs. You can check if you disable caching for development:
https://github.com/aimeos/aimeos-laravel#hints
Code: Select all
<!-- catalog.detail.csrf -->...<!-- catalog.detail.csrf -->
https://github.com/aimeos/aimeos-laravel#hints
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: User is logged out during Shop Interaction
No, we did not remove the markers.
What we observed is that, the validation token error happens in the first basket call, when adding a new product to the basket. What we observed as well is that when we manually change the session cookie, then the validation token error happens immediately. So the cause for the error relates to the basket call and the session cookie.
Any ideas?
What we observed is that, the validation token error happens in the first basket call, when adding a new product to the basket. What we observed as well is that when we manually change the session cookie, then the validation token error happens immediately. So the cause for the error relates to the basket call and the session cookie.
Any ideas?
Re: User is logged out during Shop Interaction
We now experimented with the session driver and saw that with the file session driver it is working without a problem. What could be the breaking issue when using the database session driver? Because for the rest of our laravel requests the database session driver is working fine.
Re: User is logged out during Shop Interaction
There shouldn't be any reason for this because Aimeos uses the Laravel session interface which abstracts from the concrete storage
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star