Connecting Tech Pros Worldwide Forums | Help | Site Map

using IP address for secure login

Familiar Sight
 
Join Date: Sep 2007
Posts: 211
#1: Oct 13 '09
Hi everyone

I'v seen some people just pass the login to others by sending PHPSSID to others like this:

www.example.com/index.php?phpssid=somevalue

Then I thought it might be possible to prevent this by checking the IP address on each page BUT i'v heard that some ISPs change the users IP address on each page (like AOL).

How could it be possible? Is it even true? And what do you think about checking the IP?

Thanks

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,669
#2: Oct 13 '09

re: using IP address for secure login


you don’t need to check the IP to overcome this. first you have to disable session id transfer via url and second if you limit the session (cookie) lifetime enough, the session is gone before anyone from outside can access the session (you can also change the session name).
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,950
#3: Oct 13 '09

re: using IP address for secure login


Dynamic IPs are very common these days, as apposed to static IPs. One changes, the other doesn't (respectively). You should not make assumptions about a user based on their IP address.
Familiar Sight
 
Join Date: Sep 2007
Posts: 211
#4: Oct 13 '09

re: using IP address for secure login


Thanks for the answers
It realy helped
Reply