Question : Write a cookie

I'm using an ASP Ajax star rating script on my web pages. When the user clicks on a star it inserts that rating into my db and then hides star rating for that products uniqueID. But if the user hits refresh they can vote again on the same product. When I was going through the limited documentation that came with the script I couldn't figure out how they were writing the cookie.

Here is some of what I'm using:

 <%
Dim strLinknum
strLinknum = rsLink("LINK_ID")
%>

 


          <%
If Request.Cookies("RateSong")("Song" & strLinknum) = "True" Then
%>
          <%else%>
         
D").Value)%>">  D").Value)%>" class="cgr">Vote on this video
             
         

    <%End if%>
 



I did do a simple test to see I could actually keep the rating hidden by place a cookie on the page from the get go and it worked:
 <%
Dim strLinknum
strLinknum = rsLink("LINK_ID")
%>
<% Response.Cookies("RateSong")("Song" & strLinknum) = "True"  %>

Answer : Write a cookie

There are NO cookies set in the code you showed
Random Solutions  
 
programming4us programming4us