abhan
August 27th, 2001, 02:02 AM
i am developing an online store,wherein the shopping is possible only in few countries.once a user selects a country ,he can shop for only that country,upon selecting another country he should not have any recoooooords of the previous country,for example,if i have added item 1 in my cart for country1,and next if i select country 2,item 1 should not be present in my cart.
my code for this was
Language=VBScript
'Dim str,conn,rs,session
country = Request.Form("country") '
'Session("Country")=country
'if Session("country")"" then
''Session("country")=nothing
'set Session("country")=nothing
'Else
Session("Country")=country 'stores country value in Country
cun=Session("Country")
if (cun="") then
Response.Redirect("error.html")
Else
i had used the code commented above but it does not work.please suggest me what to do.
in brief i want to:
first check if the session value country is present or not ,if it is present ,i want to kill it and then again create the session value session and proceed with my code for further information.
my code for this was
Language=VBScript
'Dim str,conn,rs,session
country = Request.Form("country") '
'Session("Country")=country
'if Session("country")"" then
''Session("country")=nothing
'set Session("country")=nothing
'Else
Session("Country")=country 'stores country value in Country
cun=Session("Country")
if (cun="") then
Response.Redirect("error.html")
Else
i had used the code commented above but it does not work.please suggest me what to do.
in brief i want to:
first check if the session value country is present or not ,if it is present ,i want to kill it and then again create the session value session and proceed with my code for further information.