Ø
Øyvind Isaksen
Hello!
Have a site that contains both ASP (3.0) and ASP.NET files.
When I log inn, my login.asp write info to a cookie to use for
authentication in my asp.net files. One of the things I write to the cookie
is the users local IP address. My problem comes when I try to "use" this IP
address in my asp.net files. When I print out the IP adress from the cookie,
it looks like theis:
127%2E0%2E0%2E1
It has to be in a format like this: 127.0.0.1
How can this be done correct??
---------------------------------------------------------------
This is how I read from the cookie in my asp.net file:
Dim ip As String = Request.Cookies("login")("ip")
Response.Write(ip & "<br>")
OUTPUT: 127%2E0%2E0%2E1
Have a site that contains both ASP (3.0) and ASP.NET files.
When I log inn, my login.asp write info to a cookie to use for
authentication in my asp.net files. One of the things I write to the cookie
is the users local IP address. My problem comes when I try to "use" this IP
address in my asp.net files. When I print out the IP adress from the cookie,
it looks like theis:
127%2E0%2E0%2E1
It has to be in a format like this: 127.0.0.1
How can this be done correct??
---------------------------------------------------------------
This is how I read from the cookie in my asp.net file:
Dim ip As String = Request.Cookies("login")("ip")
Response.Write(ip & "<br>")
OUTPUT: 127%2E0%2E0%2E1