I would like to ask a theoritical question about how some web sites work. As an example.Let's say that I'm in the A market on line store. I placed a case of wine in the shopping trolley, The page appeared with this URL:
www.A.co.uk/webstore/basket.asp?calledby=normal&ProductCode=6379044
I continued shopping and then placed a different wine in the trolley and again the page appeared with this URL
www.A.co.uk/webstore/basket.asp?calledby=normal&ProductCode=6323456
I then Clicked the Back Button on the browser three times and the trolley page appeared again. This time contained ONLY the first item and NOT the second.
In another website I showed the following:
I selected a case of wine. As a result the form containing the wine was posted to this ASP page basket.asp?Item=3605681
, where Item is the ID of the particular case of wine. However the page appeared in the browser had a different URL:
www.B.com/extra/basket.aspx?acstore=10&ba=0
I then added another case of different wine to basket. The address that appeared was exactly same as previous one.
When I clicked the Back Button The Shopping basket always showed that I have two items in the basket. How do you think that these Online stores have programmed the site so that shopping basket always shows its current state even if the user presses the Back Button several times? Also, what's the difference of these two situations?