When user adds to cart, as per my requirement, I have to decrease the stock.
The cart doesnt provide config to reset at 5 minutes.
So, I am planning to remove cart from the session data located inside storage/framework/sessions___ file.
I am trying to track user's session_id in a virtual table along with every cart add/update and then on basis of that session_id, I am trying to run a cron job, which upon created every 5 minutes, IF NOT COMPLETED THE ORDER, will remove cart data from the user's session file based upon that same session_id.
@fylzero Yes sir, when the cart package allows us to expire the cart on logout and I have restocked the cart during logout. Upon new sign in, the cart is auto initialized to NULL.
I wanted to remote cart from active session of the user, so that the user doesn't have to login every 5 minutes.