No, the coupon code is probably not the cause of the problem. It looks like you are storing the session ID value which is an alpha numeric string into a column that is set to allow only numbers. Check that any column you are storing the Session ID in is a text column.