-
Notifications
You must be signed in to change notification settings - Fork 456
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
Cart session empty #1
Comments
Hi, it looks like there is a problem with your system when persisting sessions. Have you tried to use the normal Session::put() and then do a Session::get() on another route and check if its working? |
HI, Yes, i tried and it's working. The problem is from Cart construct. When i run Cart::getContent() is rewriting session with a blank array. If i add items to cart and then remove the code that overwrites the session from constructor and run getContent everything works ok. This is the code:
|
yes you are right @tavicu. Thank you for your time. I have tagged a new version of it now. |
Add ::class notation and code formatting.
@tavicu. i am facing the same issue can you help me |
sir I am also facing the same issue. Is anyone can help me? |
can you please tell me where should I change? |
@tavicu sir can you please help me. I am new to use this. |
Hi,
I'm having a problem.
In one route i add an item tot the cart with "Cart::add(455, 'Sample Item', 100.99, 2, array());" and in another route i get the items with "Cart::getContent()".
The problem is that Cart::getContent() always return empty.
I checked the session with Session::get() (and the session id) and the items appear but Cart::getContent always return an empty array.
Can you help me please?
Thanks.
The text was updated successfully, but these errors were encountered: