[OWASP_PHPSEC] Session Management Library : Adding location of sessions

Shivam Dixit shivamd001 at gmail.com
Tue Sep 10 04:08:56 UTC 2013

Hi again !

For adding location corresponding to each session, I have created following
blueprint :

1) Creating a column *LOCATION* in "SESSION" table.
2) Choosing from one of the *free APIs* available for *IP lookup*. Some of
the examples are : ipinfodb (http://ipinfodb.com/ip_location_api.php) ,
freegeoip (http://freegeoip.net)
3) In function *newSession *making an API call to service chosen in step *2)
*and fetching data in JSON format.
4) Extract *Country, State level information* from the result.
5) Add one more column in "*Insert Into session"* SQL Query.

Is the above implementation correct? Or you have some other ideas? Which
API service should we use for IP to location look up?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130910/70d9bdd4/attachment.html>

More information about the OWASP_PHP_Security_Project mailing list