Jump to content

Progam Design - User Logins and Personal Details?


random1

Recommended Posts

Hey All,

 

Just a few questions regarding user login security and personal details.

 

- Is it safer to allow users to be logged into their account from multiple locations at once of limit it to one location (single-sign-on)?

 

- Is it illegal to record a user's IP Address in a database?

 

Responses are much appreciated :D

Are there any problems caused by implmenting a "logged into their account from multiple locations at once and limit it to one location" logic to an app?

 

Many people frequently use multiple computers. Having to log in all the time would be a pain in the ass for normal sites like this.

  • 3 weeks later...

Many people frequently use multiple computers. Having to log in all the time would be a pain in the ass for normal sites like this.

The question is, would it be a normal site and what he would want to gain with this single-sign-on . ;-)

function ipCheck()
{

   if ( getenv('HTTP_CLIENT_IP') )
      return getenv('HTTP_CLIENT_IP');

   if ( getenv('HTTP_X_FORWARDED_FOR') )
      return getenv('HTTP_X_FORWARDED_FOR');

   if ( getenv('HTTP_X_FORWARDED') )
      return getenv('HTTP_X_FORWARDED');

   if ( getenv('HTTP_FORWARDED_FOR') )
      return getenv('HTTP_FORWARDED_FOR');

   if ( getenv('HTTP_FORWARDED') )
      return getenv('HTTP_FORWARDED');

   return $_SERVER['REMOTE_ADDR'];

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.