Forum Moderators: coopster
My question is: the session Time Out period is 180 minutes. If I delete a product or add a product within this 180 minutes, visitors who are in a session still see the old "total_items" and will get an empty product entry which is just deleted or will not see the new prodcuts I just add. Is there any solution to this? Thanks.
You always have to verify existence. Not just for this purpose, but for other reasons as well, security being one of them. What if the user doesn't have a certain product in their list because it isn't supposed to be available to them but they notice in the link how the product request works ...
http://www.example.com/productlist.php?product=BronzeTrophy
Hey, I want Gold. So rather than use your link, I key my own into the address bar ...
http://www.example.com/productlist.php?product=GoldTrophy
Not a real great example, but you get the idea hopefully. Take it to the next level. You have a link ...
http://www.example.com/productlist.php?product=GoldTrophy&price=1000
See where this is going?