Make sure the session variable has a value by writing it to the page:
coupon = <%= Session("coupon") %>
if there is no value, double check that it is getting set on the checkout page.
From you description, I can only think that the session variable is not being set.