Some thoughts: Am I right that sessionID is actually the key for a particular shopping cart if you like. The problem is if they use the bookmark to comeback at a later time, samplefile.pl can't currently handle it effectively. What about this. Change the name of sessionID to thiscartID. When you create thiscartID the first time, write it to file called cartsessions and write say datetime along with it. cartsessions: thiscartID datetime ct000001 19101999-14:33:21 ct000002 19101999-14:36:54 [new cart each minute or so ;)] When an a cart is finalised to order stage, find all occurences of that thiscartID in cartsessions and delete them. Have samplefile.pl check if thiscartID exists in cartsessions. If it does then call existingcart(). If it doesn't call newcart(). John >Hi, > >I want to develop a shopping cart, but I have run ito some real problems. > >I wonder how to test that the "sessionID" value is valid when a user who has > >bookmarked a page returns to the website using that bookmark. > >The bookmark look like this: > >"http://www.myserver.com/samplefile?sessionID=xxxx". > >My problem is that sessionID coresponds with the order number and if the > >user is not assigned a new sessionID he will end up corrupting his previous > >order. > > > >Anybody has a solution? ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org