quick ASP question
does anyone see whats wrong with this code<%
Dim ip_address
ip_address = request.servervariables("REMOTE_ADDR")
response.cookies("fname22")= ip_address
response.cookies("fname22").Expires = DateAdd("m",1,Date)
Response.Write(ip_address)
%>
i can get it to write the ip address, but it wont drop the cookie on the machine any idea, if its just a standard
<%
response.cookies("fname22")= "john"
response.cookies("fname22").Expires = DateAdd("m",1,Date)
%>
its working so i know my browser is creating the cookie, just not when its carrying the IP address value, its probably a syntax issue, any help is welcome
cheers