I searched a lot but didn't find any solution for my problem. I have a php live auction site where each product is unique. Once user added to the cart then it will be blocked and giving time limit to buy the product. If he fails to buy the product within time, then the product will be released again.
Now if a user closes the browser after adding to the cart, how do I delete the session variables?
I used onbeforeload
and onunload
, but that didn't solve the problem. This problem can not be solved by
How to change the session timeout in PHP?.