Hi,
I am building a really simple ordering system using php sessions. What I want to accomplish is this.....I need a way to keep the customers from accessing such pages as "confirm order" unless they went through the entire ordering process.
I have thought of many ways to do this and most work, but my problem is when a customer starts the ordering process and then for some reason stops and the session times out. I have a timeout of 20 minutes and then after 30 minutes my inventory table is updated with the amount that was ordered added back. If the customer has the window open (session timed out) and then continues, it either picks up the old session or just starts a new one.
I am looking for a way to check to see if the session is active and not timed out. If it is timed out i want to send the customer back to the beginning and if not then continue with the order process.
Any ideas?? Is this even possible??