Connecting Tech Pros Worldwide Forums | Help | Site Map

one IP one user login

Member
 
Join Date: Sep 2006
Posts: 73
#1: Nov 14 '08
This is the heavier code...
I have to make sure no one can log on system more than one login on same ip or at the same time there are two people log on system in different ip but same login id..
Please help...and some explaination coz i'm almost dummies now

theseoworld's Avatar
Newbie
 
Join Date: Jul 2008
Posts: 3
#2: Nov 14 '08

re: one IP one user login


You can do it. You have to maintain a log table for people how have login to the system and record there IP address in database.
Below is the code to track IP address :
Expand|Select|Wrap|Line Numbers
  1. request.ServerVariables("REMOTE_ADDR")
Member
 
Join Date: Sep 2006
Posts: 73
#3: Nov 16 '08

re: one IP one user login


Quote:

Originally Posted by theseoworld

You can do it. You have to maintain a log table for people how have login to the system and record there IP address in database.
Below is the code to track IP address :

Expand|Select|Wrap|Line Numbers
  1. request.ServerVariables("REMOTE_ADDR")

could you explain it in more detail....
that request.servervariables? to check IP?so do i need to store the ip detail in some cookie?or session?or in database?or etc?
Reply