NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: RayA on March 04, 2012, 10:14:08 PM
-
Bruce,
I would like to get the client ip address and set a session variable when the index page is requested. What emb point is the best place to do this?
Ray Abadie
-
Hi Ray,
you don't really need to set a session value, although you can if you like.
there's a method
p_web.GetSessionIP()
which returns the IP number of he current session.
while on this topic - there's a property
webserver.NoIPSpoofing
which when set, means that a session is "bound" to a specific IP address. This is more secure, but can e a problem if there are proxy servers, between the client and the server.
cheers
Bruce
cheers
Bruce
-
Thanks Bruce ...... ;D