terp_in_umcp
04-09-2007, 05:11 PM
Hi there...
Here's the situation...
There's a sql insert that should run the first time that the user visits a page. If the user just hits refresh then the sql should not run....
I am doing this, but it does not seem to work...it keeps running the sql everytime...am I even using the right logic? Any ideas???
if Request.Cookies("visited")= "yes" then
else
(sql insert statement here)
Response.Cookies("visited")="yes"
end if
Here's the situation...
There's a sql insert that should run the first time that the user visits a page. If the user just hits refresh then the sql should not run....
I am doing this, but it does not seem to work...it keeps running the sql everytime...am I even using the right logic? Any ideas???
if Request.Cookies("visited")= "yes" then
else
(sql insert statement here)
Response.Cookies("visited")="yes"
end if