<% 'declare your variables Dim customerId, customerName 'Receiving values from Form, assign the values entered to variables customerId = Session("customerId") customerName = Session("customerName") if customerId = 0 then response.redirect "unauthorised.asp" end if %>