Problem with cookies :(
Hello Guyz...
I`m using the following code:
--------------------------
<%
Dim oRSbn, varPeopleIDNumber
varPeopleIDNumber = Request.Cookies("PeopleIDNumber")
Set oRSbn=server.createobject("ADODB.recordset")
sqltext = " SELECT * from users WHERE Unique_Id=" & varPeopleIDNumber & ";"
oRSbn.open sqltext, "DSN=news"
reponse.write oRSbn("nickname")
oRSbn.Close
%>
--------------------------
From the error I get I see that the variable "varPeopleIDNumber" is empty.
1. I`ve checked the cookie and it`s fine written in the correct folder
2. I`ve used this code in another application also and it works fine. So, what`s the problem? Should I make some settings in order to make it work?
|